joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58aac0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x134000]
push edi
jmp 0x58aada
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x58aae1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58aad0
mov eax, 1
add ebx, ebx
jne 0x58aaf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x58ab04
jne 0x58ab23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58ab23
dec eax
add ebx, ebx
jne 0x58ab10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x58aae8
add ebx, ebx
jne 0x58ab1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x58ab75
xor ecx, ecx
sub eax, 3
jb 0x58ab3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x58abaa
sar eax, 1
mov ebp, eax
jmp 0x58ab46
add ebx, ebx
jne 0x58ab46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58ab14
inc ecx
add ebx, ebx
jne 0x58ab54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58ab14
add ebx, ebx
jne 0x58ab61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x58ab56
jne 0x58ab72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x58ab56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x58ab94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x58ab86
jmp 0x58aad6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x58ab94
add edi, ecx
jmp 0x58aad6
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x58abb2
cmp byte [edi], 0x11
jne 0x58abb2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x58abb7
lea edi, [esi + 0x183000]
mov eax, dword [edi]
or eax, eax
je 0x58ac2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23cc24]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23cda0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x58abe4
mov ecx, edi
jns 0x58ac13
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x23cda4]
or eax, eax
je 0x58ac29
mov dword [ebx], eax
add ebx, 4
jmp 0x58ac01
call dword [esi + 0x23cdb4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x58ac60
cmp al, 0xef
ja 0x58ac53
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x58ac35
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x58ac42
mov ebp, dword [esi + 0x23cda8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x58ac94
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..00cfg
nop
mov ebx, 0x408ecc
mov ecx, 0x277d65c2
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
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
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x72264fd5
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x21cd1f2a
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2f646ddf
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402ea9
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
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.00406387
xor ebx, ebx
cmp eax, ebx
jne 0x402f8c
test byte [ebp + 0x10], 2
je 0x402f0a
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f71
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402f46
test edi, edi
jne 0x402f71
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402ea9
test eax, eax
jne 0x402f4f
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402f1f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004068e7
test eax, eax
jne 0x402f81
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402f8c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402f8c
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 0x4032b4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
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 0x4032d4
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x4032e6
mov dword [ebp - 0xc], 0x7a8f00
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4032fb
mov ecx, dword [0x7eeab8]
add ecx, eax
push ecx
call fcn.004034c2
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034ac
test eax, eax
je 0x40349a
test byte [ebp + 0x17], 0x80
je 0x403445
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x41e658], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov byte [0x41e640], 0xb
mov dword [ebp + 8], eax
jle 0x4034a2
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403351
mov esi, dword [ebp + 0x14]
mov edi, 0x7a4f00
push esi
push edi
call fcn.004034ac
test eax, eax
je 0x40349a
sub dword [ebp + 0x14], esi
mov dword [0x41e630], edi
mov dword [0x41e634], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x41e630
mov dword [0x41e638], edi
mov dword [0x41e63c], eax
call fcn.00406a42
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40343d
mov esi, dword [0x41e638]
sub esi, edi
call ebx
test byte [0x7eeb14], 1
mov edi, eax
je 0x4033f8
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4033bf
cmp dword [ebp + 0x14], 0
jne 0x4033f8
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 - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.0040557c
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403431
cmp dword [ebp + 0x10], 0
jne 0x403417
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.004060bc
test eax, eax
je 0x403441
add dword [ebp - 4], esi
jmp 0x403425
mov eax, dword [0x41e638]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 4
jne 0x403374
jmp 0x4034a2
cmp dword [ebp + 0x14], 0
jg 0x403344
jmp 0x4034a2
push 0xfffffffffffffffc
jmp 0x40349c
push 0xfffffffffffffffe
jmp 0x40349c
test edi, edi
jne 0x403487
cmp dword [ebp + 0x14], edi
jle 0x4034a2
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x40345b
mov esi, ebx
mov edi, 0x7a4f00
push esi
push edi
call fcn.004034ac
test eax, eax
je 0x40349a
push esi
push edi
push dword [ebp + 0xc]
call fcn.004060bc
test eax, eax
je 0x403441
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403451
jmp 0x4034a2
cmp dword [ebp + 0x14], esi
jge 0x40348f
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034ac
test eax, eax
jne 0x40349f
push 0xfffffffffffffffd
pop eax
jmp 0x4034a5
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405a4b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
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], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405a9c
xor eax, eax
jmp 0x405ac3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405ac3
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405a98
call esi
pop esi
leave
ret 4

Function at 0x405afd
Capabilities:
Create process on windows

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

Function at 0x405b40
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_ShellExecuteExW]
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405fe5
mov edi, eax
cmp edi, 0xffffffff
je 0x405c1f
test byte [esp + 0x10], 1
push esi
je 0x405c01
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405c07
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405c10
xor eax, eax
inc eax
jmp 0x405c21
test byte [esp + 0x10], 4
jne 0x405c1f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405c26
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
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.00405ef1
test bl, 8
mov dword [ebp - 8], eax
je 0x405c65
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7eeae8], eax
jmp 0x405de2
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405c7f
test eax, eax
je 0x405d90
test bl, 2
je 0x405d90
mov esi, 0x7d4f50
push edi
push esi
call fcn.0040651a
cmp dword [ebp + 8], 0
je 0x405c9e
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405ca4
push edi
call fcn.00405e35
cmp word [edi], 0
jne 0x405cb4
cmp word [0x7d4f50], 0x5c
jne 0x405cbf
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d85
cmp word [ebp - 0x22c], 0x2e
jne 0x405d09
cmp word [ebp - 0x22a], 0
je 0x405d68
cmp word [ebp - 0x22a], 0x2e
jne 0x405d09
cmp word [ebp - 0x228], 0
je 0x405d68
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040651a
test byte [ebp - 0x258], 0x10
je 0x405d34
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405d68
push dword [ebp + 0xc]
push edi
call fcn.00405c26
jmp 0x405d68
push dword [ebp - 4]
push edi
call fcn.00405bde
test eax, eax
jne 0x405d60
cmp dword [ebp - 4], eax
je 0x405d58
push edi
push 0xfffffffffffffff1
call fcn.0040557c
push 0
push edi
call fcn.004062da
jmp 0x405d68
inc dword [0x7eeae8]
jmp 0x405d68
push edi
push 0xfffffffffffffff2
call fcn.0040557c
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ce1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405d90
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405de2
cmp dword [ebp - 8], esi
jne 0x405da4
inc dword [0x7eeae8]
jmp 0x405de2
push edi
call fcn.00406850
test eax, eax
je 0x405de2
push edi
call fcn.00405de9
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405bde
test eax, eax
jne 0x405dda
cmp dword [ebp - 4], esi
je 0x405d9c
push edi
push 0xfffffffffffffff1
call fcn.0040557c
push esi
push edi
call fcn.004062da
jmp 0x405de2
push edi
push 0xffffffffffffffe5
call fcn.0040557c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405ef1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7d8f50
push esi
call fcn.0040651a
push esi
call fcn.00405e94
mov edi, eax
test edi, edi
jne 0x405f12
xor eax, eax
jmp 0x405f6a
push edi
call fcn.004067a1
test byte [0x7eea78], 0x80
je 0x405f2f
mov ax, word [edi]
test ax, ax
je 0x405f0e
cmp ax, 0x5c
je 0x405f0e
sub edi, esi
sar edi, 1
jmp 0x405f49
call fcn.00406850
test eax, eax
je 0x405f43
test byte [eax], 0x10
je 0x405f0e
push esi
call fcn.00405e35
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405f35
call fcn.00405de9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405fe5
Capabilities:
Check if file exists
Get file attributes
Set file attributes

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

Function at 0x40600a
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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_CreateFileW]
ret 0xc

Function at 0x406039
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
mov dword [ebp - 4], 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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406089
test edi, edi
jne 0x406046
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406083
Function at 0x406160
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x7dd5e8], 0x55004e
mov dword [0x7dd5ec], 0x4c
mov edi, 0x400
mov ebp, 0x7dd5e8
je 0x4061b6
push 1
push 0
push esi
call fcn.0040600a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4062d5
cmp eax, edi
jg 0x4062d5
mov esi, 0x7ddde8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4062d5
cmp eax, edi
jg 0x4062d5
push esi
push ebp
push str._ls_ls_r_n
push 0x7dd1e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7eea70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406557
push 4
push 0xc0000000
push esi
call fcn.0040600a
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4062d5
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 0x4062ce
push edi
push esi
push ebp
call fcn.0040608d
test eax, eax
je 0x4062ce
push str._Rename__r_n
push esi
call fcn.00405f6f
test eax, eax
jne 0x40626c
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4062a1
add eax, 0xa
push 0x40a580
push eax
call fcn.00405f6f
mov ebp, eax
test ebp, ebp
je 0x40629d
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40628e
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406288
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4062a3
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x7dd1e8
push eax
call fcn.00405fc5
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.004060bc
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 0x4062da
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4062fd
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406160
pop ecx
pop ecx
inc dword [0x7eeaf0]
ret 8
Function at 0x4063e8
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], 0x4000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406387
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406458
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_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x3ffe], 0
test edi, edi
pop edi
jne 0x406458
cmp dword [ebp + 0xc], 1
je 0x40645c
cmp dword [ebp + 0xc], 2
je 0x40645c
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406877
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 0x40689b
xor eax, eax
test eax, eax
je 0x4068ae
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068ae
xor ecx, ecx
jmp 0x4068b1
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 0x4069d4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7de5ec], 0
push esi
jne 0x406a0b
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 0x4069e5
mov dword [ecx*4 + 0x7de5e8], eax
inc ecx
cmp ecx, 0x100
jl 0x4069e0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a3c
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 + 0x7de5e8]
xor eax, esi
inc ecx
dec edx
jne 0x406a1e
pop edi
not eax
pop esi
ret 0xc
Function at 0x401040
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x18]
xor ebp, ebp
push edi
push 0x4285c0
push esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.004040c0
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
jne 0x401095
mov eax, dword [esp + 0x20]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402470
add esp, 8
push ebp
call fcn.004131ce
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0xc
ret
push ebx
mov ebx, dword [esp + 0x24]
xor eax, eax
push 0
mov ecx, dword [ebx + 4]
add ecx, dword [esi + 0x1000]
adc eax, dword [esi + 0x1004]
push eax
push ecx
push edi
call fcn.0040f456
add esp, 0x10
test eax, eax
jns 0x4010e0
call fcn.004131b0
mov ecx, eax
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push dword [ecx]
push str.fseek
call fcn.004025f0
add esp, 0x10
jmp 0x4011c2
push dword [ebx + 0xc]
call fcn.004131e9
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x401119
mov esi, dword [ebx + 0xc]
call fcn.004131b0
mov ecx, eax
lea eax, [ebx + 0x12]
push esi
push eax
push str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
push dword [ecx]
push str.malloc
call fcn.004025f0
add esp, 0x14
jmp 0x4011c2
cmp byte [ebx + 0x10], 1
jne 0x401131
push ebp
push 0
push ebx
push edi
call fcn.00401200
add esp, 0x10
jmp 0x4011b3
mov esi, dword [ebx + 0xc]
xor ebx, ebx
mov dword [esp + 0x10], eax
test esi, esi
je 0x401185
nop
test ebx, ebx
jb 0x401155
ja 0x40114e
cmp esi, 0x2000
jbe 0x401155
mov edi, 0x2000
jmp 0x401157
mov edi, esi
push dword [esp + 0x14]
push 1
push edi
push eax
call fcn.0040f032
add esp, 0x10
cmp eax, 1
jb 0x401189
mov eax, dword [esp + 0x10]
sub esi, edi
sbb ebx, 0
add eax, edi
mov dword [esp + 0x10], eax
test ebx, ebx
ja 0x40114e
jb 0x401185
test esi, esi
jne 0x401140
xor eax, eax
jmp 0x4011af
call fcn.004131b0
mov ecx, eax
mov eax, dword [esp + 0x24]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push dword [ecx]
push str.fread
call fcn.004025f0
add esp, 0x10
or eax, 0xffffffff
mov edi, dword [esp + 0x14]
test eax, eax
je 0x4011c2
push ebp
call fcn.004131ce
add esp, 4
xor ebp, ebp
push edi
call fcn.0040edd1
add esp, 4
pop ebx
test ebp, ebp
je 0x4011e1
push dword [esp + 0x24]
push ebp
call fcn.004041d0
add esp, 8
mov dword [esp + 0x14], eax
push ebp
call fcn.004131ce
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0xc
ret