joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ecd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test dl, 3
je 0x48ed09
test edi, edi
je 0x48ed09
nop dword [eax + eax]
movzx ecx, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [esi + ecx*4]
sub edi, 1
je 0x48ed09
test dl, 3
jne 0x48ecf0
mov ebx, edi
lea ecx, [edx - 4]
and ebx, 7
shr edi, 3
mov dword [ebp + 0x10], ebx
test edi, edi
je 0x48edab
nop
mov ebx, dword [ecx + 4]
add ecx, 4
xor ebx, eax
mov dword [ebp + 8], ecx
mov eax, ebx
shr eax, 8
movzx edx, al
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, dword [esi + edx*4 + 0x1800]
xor eax, dword [esi + ecx*4 + 0x1400]
mov ecx, ebx
shr ecx, 0x18
xor eax, dword [esi + ecx*4 + 0x1000]
movzx ecx, bl
mov ebx, dword [ebp + 8]
add ebx, 4
mov dword [ebp + 8], ebx
xor eax, dword [esi + ecx*4 + 0x1c00]
mov ebx, dword [ebx]
mov ecx, ebx
shr ecx, 8
movzx edx, cl
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [esi + edx*4 + 0x800]
xor edx, dword [esi + ecx*4 + 0x400]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [esi + ecx*4]
movzx ecx, bl
xor edx, dword [esi + ecx*4 + 0xc00]
mov ecx, dword [ebp + 8]
xor eax, edx
sub edi, 1
jne 0x48ed20
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x48edc9
lea edx, [ecx + 3]
movzx ecx, byte [edx + 1]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [esi + ecx*4]
sub ebx, 1
jne 0x48edb2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x48edf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
je 0x48ee21
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
movzx eax, al
movzx ecx, word [ecx*2 + 0x4c1898]
xor eax, ecx
sub edx, 1
jne 0x48ee01
pop esi
pop ebp
ret
Function at 0x48f4e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x8c], eax
movzx edi, byte [ebx]
lea esi, [ebx + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x88], eax
test edi, edi
je 0x48f52e
movsx eax, byte [esi]
lea esi, [esi + 1]
mov ecx, edx
shl edx, 5
shr ecx, 0x1b
xor edx, ecx
xor edx, eax
sub edi, 1
jne 0x48f517
cmp dword [ebx + 4], 0
jne 0x48f55d
mov esi, dword [ebx + 8]
test esi, esi
je 0x48f55d
mov ecx, dword [ebp + 0x10]
add esi, 3
shr esi, 2
test esi, esi
je 0x48f55d
mov eax, edx
lea ecx, [ecx + 4]
shl edx, 0x10
shr eax, 0x10
xor edx, eax
xor edx, dword [ecx - 4]
sub esi, 1
jne 0x48f548
mov esi, dword [ebp - 0x88]
mov dword [esi], edx
mov eax, dword [ebx + 4]
test eax, eax
je 0x48f597
lea ecx, [ebp - 0x84]
push ecx
push eax
push dword [ebp - 0x8c]
call fcn.0047ca90
add esp, 0xc
test eax, eax
jne 0x48f599
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0x10
shl eax, 0x10
xor ecx, eax
xor ecx, dword [ebp - 0x7c]
mov dword [esi], ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret

Function at 0x4924f7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x492536
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x492536
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x492536
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x492536
cmp dword [ecx + 0x74], 0xe
jbe 0x492536
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4ae991
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ae913

Function at 0x4b05d5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b0286

Function at 0x4b05e0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b0410

Function at 0x4b2ced
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b2840

Function at 0x4b97a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b97cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b97cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401468
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.004013e0
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 8]
leave
ret 4

Function at 0x402ac0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x402b03
push edi
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xc]
push ecx
call fcn.004038d0
add esp, 8
pop edi
pop esi
add esp, 0x104
ret
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x402b10
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x402b9b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402b9b
test esi, esi
je 0x402b55
cmp esi, 0xffffffff
je 0x402b55
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x402be1
mov eax, dword [esp + 0x160]
test eax, eax
je 0x402b84
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x402b9b
jmp 0x402b93
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x402b9b
mov dword [esp + 0x10], 1
test esi, esi
je 0x402be1
cmp esi, 0xffffffff
je 0x402be1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402c18
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x402bee
call edi
test eax, eax
je 0x402be1
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x402c18
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x402bc9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x402be1
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x402c18
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x402bfb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00402240
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
Function at 0x4030d8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4030f5
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x403104
mov ebx, 0x4204e0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403119
mov ecx, dword [0x447798]
add ecx, eax
push ecx
call fcn.004032ca
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004032b4
test eax, eax
je 0x40326b
test byte [ebp + 0x17], 0x80
je 0x403254
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x414450
mov dword [ebp - 0xc], eax
call fcn.004065ef
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4032aa
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403169
mov esi, dword [ebp + 0x14]
mov edi, 0x41c4e0
push esi
push edi
call fcn.004032b4
test eax, eax
je 0x40326b
sub dword [ebp + 0x14], esi
mov dword [0x414468], edi
mov dword [0x41446c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x414450
mov dword [0x414470], ebx
mov dword [0x414474], eax
call fcn.0040660f
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x40324c
mov esi, dword [0x414470]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4477f4], 1
mov edi, eax
je 0x40320b
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4031d8
cmp dword [ebp + 0x14], 0
jne 0x40320b
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x50]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push 0
call fcn.004051e8
mov dword [ebp - 0xc], edi
test esi, esi
je 0x403240
cmp dword [ebp + 0x10], 0
jne 0x403228
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00405d01
test eax, eax
je 0x403250
add dword [ebp - 4], esi
jmp 0x403234
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x414470]
cmp dword [ebp - 0x10], 1
jne 0x40318c
jmp 0x4032aa
cmp dword [ebp + 0x14], 0
jg 0x40315c
jmp 0x4032aa
push 0xfffffffffffffffc
jmp 0x40326d
push 0xfffffffffffffffe
jmp 0x40326d
test edi, edi
je 0x40329f
cmp dword [ebp + 0x14], esi
jge 0x403260
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004032b4
test eax, eax
jne 0x4032a7
push 0xfffffffffffffffd
pop eax
jmp 0x4032ad
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40327b
mov esi, dword [ebp + 0x14]
mov edi, 0x41c4e0
push esi
push edi
call fcn.004032b4
test eax, eax
je 0x40326b
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405d01
test eax, eax
je 0x403250
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403270
jmp 0x4032aa
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4056ae
Capabilities:
Create directory

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

Function at 0x405760
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405c35
mov edi, eax
cmp edi, 0xffffffff
je 0x405882
test byte [esp + 0x10], 1
push esi
je 0x405864
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40586a
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405873
xor eax, eax
inc eax
jmp 0x405884
test byte [esp + 0x10], 4
jne 0x405882
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405889
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.00405b47
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4058c8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4477c8], eax
jmp 0x405a52
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4058e2
test eax, eax
je 0x405a00
test bl, 2
je 0x405a00
mov esi, 0x43a530
push edi
push esi
call fcn.004060c1
cmp dword [ebp + 8], 0
je 0x405901
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405907
push edi
call fcn.00405aa0
cmp byte [edi], 0
jne 0x405915
cmp byte [0x43a530], 0x5c
jne 0x405920
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 0x4059f6
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405a84
cmp byte [eax], 0
je 0x405966
cmp byte [ebp - 0x1c], 0
je 0x405966
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x40597c
mov al, byte [esi + 1]
test al, al
je 0x4059d5
cmp al, 0x2e
jne 0x40597c
cmp byte [esi + 2], 0
je 0x4059d5
push esi
push ebx
call fcn.004060c1
test byte [ebp - 0x14c], 0x10
je 0x4059a1
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4059d5
push dword [ebp + 0xc]
push edi
call fcn.00405889
jmp 0x4059d5
push dword [ebp - 4]
push edi
call fcn.00405841
test eax, eax
jne 0x4059cd
cmp dword [ebp - 4], eax
je 0x4059c5
push edi
push 0xfffffffffffffff1
call fcn.004051e8
push 0
push edi
call fcn.00405ea0
jmp 0x4059d5
inc dword [0x4477c8]
jmp 0x4059d5
push edi
push 0xfffffffffffffff2
call fcn.004051e8
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405944
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405a00
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405a52
cmp dword [ebp - 0xc], esi
jne 0x405a14
inc dword [0x4477c8]
jmp 0x405a52
push edi
call fcn.00406435
test eax, eax
je 0x405a52
push edi
call fcn.00405a59
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405841
test eax, eax
jne 0x405a4a
cmp dword [ebp - 4], esi
je 0x405a0c
push edi
push 0xfffffffffffffff1
call fcn.004051e8
push esi
push edi
call fcn.00405ea0
jmp 0x405a52
push edi
push 0xffffffffffffffe5
call fcn.004051e8
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405b47
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43c530
push esi
call fcn.004060c1
push esi
call fcn.00405af2
mov edi, eax
test edi, edi
jne 0x405b68
xor eax, eax
jmp 0x405bba
push edi
call fcn.0040639c
test byte [0x44773c], 0x80
je 0x405b81
mov al, byte [edi]
test al, al
je 0x405b64
cmp al, 0x5c
je 0x405b64
sub edi, esi
jmp 0x405b99
call fcn.00406435
test eax, eax
je 0x405b93
test byte [eax], 0x10
je 0x405b64
push esi
call fcn.00405aa0
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405b85
call fcn.00405a59
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 0x405c35
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 0x405c54
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 0x405c5a
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 0x405c89
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 [0x40a3d4]
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 0x405cce
test edi, edi
jne 0x405c94
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405cc8
Function at 0x405d30
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 [0x43eab8], 0x4c554e
mov edi, 0x400
mov ebp, 0x43eab8
je 0x405d7c
push 1
push 0
push esi
call fcn.00405c5a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e9b
cmp eax, edi
jg 0x405e9b
mov esi, 0x43eeb8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e9b
cmp eax, edi
jg 0x405e9b
push esi
push ebp
push str._s_s_r_n
push 0x43e6b8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x447734]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406154
push 4
push 0xc0000000
push esi
call fcn.00405c5a
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405e9b
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 0x405e94
push edi
push esi
push ebp
call fcn.00405cd2
test eax, eax
je 0x405e94
push str._Rename__r_n
push esi
call fcn.00405bbf
test eax, eax
jne 0x405e32
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405e67
add eax, 0xa
push 0x40a3d8
push eax
call fcn.00405bbf
mov ebp, eax
test ebp, ebp
je 0x405e63
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405e54
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405e4e
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405e69
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x43e6b8
push eax
call fcn.00405c15
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.00405d01
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 0x405ea0
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 0x405ec3
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405d30
pop ecx
pop ecx
inc dword [0x4477d0]
ret 8

Function at 0x405fa8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x2000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405f47
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406017
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x1fff], 0
test edi, edi
pop edi
jne 0x406017
cmp dword [ebp + 0xc], 1
je 0x40601a
cmp dword [ebp + 0xc], 2
je 0x40601a
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x40645c
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 0x406480
xor eax, eax
test eax, eax
je 0x406492
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406492
xor ecx, ecx
jmp 0x406495
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 0x406581
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43f2bc], 0
push esi
jne 0x4065b8
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 0x406592
mov dword [ecx*4 + 0x43f2b8], eax
inc ecx
cmp ecx, 0x100
jl 0x40658d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065e9
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 + 0x43f2b8]
xor eax, esi
inc ecx
dec edx
jne 0x4065cb
pop edi
not eax
pop esi
ret 0xc
Function at 0xa9a080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xa9a0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xabf458
push ecx
call fcn.00aaa1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00aaa1e1
add esp, 0x10
jmp 0xa9a0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00aaa20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00aa9dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00a9a050
mov eax, dword [0xac4728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xa9a13b
push esi
call fcn.00a99fb0
add esp, 4
mov dword [0xac4728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xa9a14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00a99ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xa9d440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xa9d4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xa9d48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xa9d471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xa9d47e
add edx, ecx
cmp ebx, edx
jb 0xa9d48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xa9d467
xor ecx, ecx
jmp 0xa9d4a2
test eax, eax
jne 0xa9d492
xor ecx, ecx
jmp 0xa9d4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00a9d3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret