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

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x10092280]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0x5e64ea5c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
sub eax, 0x9f99c013
je 0x10008ae0
jmp 0x1000899a
mov eax, dword [ebp - 0x20]
sub eax, 0xb2acc664
je 0x10008ad0
jmp 0x100089ad
mov eax, dword [ebp - 0x20]
sub eax, 0xf7888c36
je 0x100089fd
jmp 0x100089c0
mov eax, dword [ebp - 0x20]
sub eax, 0x5e64ea5c
je 0x100089eb
jmp 0x100089d3
mov eax, dword [ebp - 0x20]
sub eax, 0x6340764f
je 0x10008a4b
jmp 0x100089e6
jmp 0x10008b1e
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0xf7888c36
jmp 0x10008b1e
mov eax, dword [0x10093794]
mov ecx, dword [0x10093790]
mov edx, eax
add edx, 0x84bddee1
sub edx, 1
sub edx, 0x84bddee1
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x9f99c013
mov ecx, 0x6340764f
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x10008b1e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x63
sub byte [edi], 0x27
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x10008a61
mov eax, dword [0x10093794]
mov ecx, dword [0x10093790]
mov edx, eax
add edx, 0xaac407a6
sub edx, 1
sub edx, 0xaac407a6
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x9f99c013
mov ecx, 0xb2acc664
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x10008b1e
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10023fc0
add esp, 0x1c
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x63
sub byte [edi], 0x27
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x10008af6
mov dword [ebp - 0x14], 0x6340764f
jmp 0x10008984
Function at 0x1000b2d0
Capabilities:
Allocate or change rwx memory
Create process on windows
Encode data using base64
Encrypt data using speck
Execute shellcode via indirect call
Hash data using murmur3
Hide graphical window
Parse credit card information
Parse pe header
Resume thread

Disassembly:
jmp 0x1000c1a7
push ebp
stc
mov ebp, esp
sar edx, 0x8d
push ebx
sal ah, 0x31
xor dl, 0xbb
dec dl
push edi
shr ah, 0xb9
cmc
push esi
sub esp, 0x22c
mov eax, dword [0x10092280]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [0x10093774]
cmp dx, 0x1026
test cl, 0x25
mov eax, dword [0x10093770]
sub esi, esi
cmovbe dx, ax
and dx, 0x3f0b
lea esi, [esi - 1]
mov edx, ecx
stc
lea edx, [edx + esi]
cmp di, 0x41a2
test edx, 0x7413ee9d
jmp loc.10094ba8

Function at 0x10028fda
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1002ba41
push ebx
push esi
call fcn.1002b96d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1002b901
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002b9ee
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002ba40
push edi
push eax
call fcn.1002a2a2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002ba0e
call fcn.1002a2f0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002ba3f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002b901
add esp, 0x20
test eax, eax
jne 0x1002ba2d
push edi
call fcn.1002a2f0
jmp 0x1002ba35
push ebx
call fcn.1002a2f0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1002bcae
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034440
push 0x10034438
push str.FlsAlloc
push 0x1f
call fcn.1002bbca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002bce2
push dword [ebp + 8]
mov ecx, esi
call dword [0x10032150]
call esi
jmp 0x1002bce8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002bd2c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034450
push 0x10034448
push str.FlsGetValue
push 0x21
call fcn.1002bbca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002bd63
push dword [ebp + 8]
mov ecx, esi
call dword [0x10032150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002bd6b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034458
push 0x10034450
push str.FlsSetValue
push 0x22
call fcn.1002bbca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002bda5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10032150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100312b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100312dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100312dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401452
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
xor eax, eax
push 3
inc eax
call fcn.00401392
cmp byte [0x403366], 0
jne 0x401534
push ebx
push edi
mov ebx, 0x403366
push ebx
push str.VisualFoxProRuntime.9
call fcn.004012d8
test eax, eax
mov edi, dword [sym.imp.MSVCR71.dll__access]
je 0x4014a5
push 0
push ebx
call edi
test eax, eax
pop ecx
pop ecx
je 0x4014a5
mov byte [0x403366], 0
jmp 0x401528
cmp byte [0x403366], 0
jne 0x401532
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40151f
add eax, 0xc
cmp eax, 0x105
jg 0x40151f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4020e8
lea eax, [ebp - 0x118]
push eax
call esi
push 3
call fcn.00401037
push eax
lea eax, [ebp - 0x118]
push eax
call esi
lea eax, [ebp - 0x118]
push 0
push eax
call edi
test eax, eax
pop ecx
pop ecx
pop esi
jne 0x40151f
push 1
lea eax, [ebp - 0x118]
push eax
mov edx, 0x106
mov ecx, ebx
call section..text
cmp byte [0x403366], 0
jne 0x401532
xor eax, eax
inc eax
push 3
call fcn.00401392
pop edi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x339f2ac5
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x246756d1
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x75af0c0c
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3c770691
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x402eae
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.004063a1
xor ebx, ebx
cmp eax, ebx
jne 0x402f91
test byte [ebp + 0x10], 2
je 0x402f0f
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 0x402f76
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402f4b
test edi, edi
jne 0x402f76
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402eae
test eax, eax
jne 0x402f54
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402f24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406928
test eax, eax
jne 0x402f86
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402f91
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402f91
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 0x4032b9
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 0x4032d9
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x4032eb
mov dword [ebp - 0xc], 0x797700
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403300
mov ecx, dword [0x7a82b8]
add ecx, eax
push ecx
call fcn.004034c7
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034b1
test eax, eax
je 0x40349f
test byte [ebp + 0x17], 0x80
je 0x40344a
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40ce58], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov byte [0x40ce40], 0xb
mov dword [ebp + 8], eax
jle 0x4034a7
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403356
mov esi, dword [ebp + 0x14]
mov edi, 0x793700
push esi
push edi
call fcn.004034b1
test eax, eax
je 0x40349f
sub dword [ebp + 0x14], esi
mov dword [0x40ce30], edi
mov dword [0x40ce34], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40ce30
mov dword [0x40ce38], edi
mov dword [0x40ce3c], eax
call fcn.00406a83
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403442
mov esi, dword [0x40ce38]
sub esi, edi
call ebx
test byte [0x7a8314], 1
mov edi, eax
je 0x4033fd
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4033c4
cmp dword [ebp + 0x14], 0
jne 0x4033fd
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.004055b9
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403436
cmp dword [ebp + 0x10], 0
jne 0x40341c
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.004060d6
test eax, eax
je 0x403446
add dword [ebp - 4], esi
jmp 0x40342a
mov eax, dword [0x40ce38]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 4
jne 0x403379
jmp 0x4034a7
cmp dword [ebp + 0x14], 0
jg 0x403349
jmp 0x4034a7
push 0xfffffffffffffffc
jmp 0x4034a1
push 0xfffffffffffffffe
jmp 0x4034a1
test edi, edi
jne 0x40348c
cmp dword [ebp + 0x14], edi
jle 0x4034a7
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403460
mov esi, ebx
mov edi, 0x793700
push esi
push edi
call fcn.004034b1
test eax, eax
je 0x40349f
push esi
push edi
push dword [ebp + 0xc]
call fcn.004060d6
test eax, eax
je 0x403446
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403456
jmp 0x4034a7
cmp dword [ebp + 0x14], esi
jge 0x403494
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034b1
test eax, eax
jne 0x4034a4
push 0xfffffffffffffffd
pop eax
jmp 0x4034aa
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405b17
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405fff
mov edi, eax
cmp edi, 0xffffffff
je 0x405c39
test byte [esp + 0x10], 1
push esi
je 0x405c1b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405c21
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405c2a
xor eax, eax
inc eax
jmp 0x405c3b
test byte [esp + 0x10], 4
jne 0x405c39
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405c40
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.00405f0b
test bl, 8
mov dword [ebp - 8], eax
je 0x405c7f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7a82e8], eax
jmp 0x405dfc
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405c99
test eax, eax
je 0x405daa
test bl, 2
je 0x405daa
mov esi, 0x7a3750
push edi
push esi
call fcn.00406534
cmp dword [ebp + 8], 0
je 0x405cb8
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405cbe
push edi
call fcn.00405e4f
cmp word [edi], 0
jne 0x405cce
cmp word [0x7a3750], 0x5c
jne 0x405cd9
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 0x405d9f
cmp word [ebp - 0x22c], 0x2e
jne 0x405d23
cmp word [ebp - 0x22a], 0
je 0x405d82
cmp word [ebp - 0x22a], 0x2e
jne 0x405d23
cmp word [ebp - 0x228], 0
je 0x405d82
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406534
test byte [ebp - 0x258], 0x10
je 0x405d4e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405d82
push dword [ebp + 0xc]
push edi
call fcn.00405c40
jmp 0x405d82
push dword [ebp - 4]
push edi
call fcn.00405bf8
test eax, eax
jne 0x405d7a
cmp dword [ebp - 4], eax
je 0x405d72
push edi
push 0xfffffffffffffff1
call fcn.004055b9
push 0
push edi
call fcn.004062f4
jmp 0x405d82
inc dword [0x7a82e8]
jmp 0x405d82
push edi
push 0xfffffffffffffff2
call fcn.004055b9
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405cfb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405daa
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405dfc
cmp dword [ebp - 8], esi
jne 0x405dbe
inc dword [0x7a82e8]
jmp 0x405dfc
push edi
call fcn.00406891
test eax, eax
je 0x405dfc
push edi
call fcn.00405e03
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405bf8
test eax, eax
jne 0x405df4
cmp dword [ebp - 4], esi
je 0x405db6
push edi
push 0xfffffffffffffff1
call fcn.004055b9
push esi
push edi
call fcn.004062f4
jmp 0x405dfc
push edi
push 0xffffffffffffffe5
call fcn.004055b9
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405f0b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a3f50
push esi
call fcn.00406534
push esi
call fcn.00405eae
mov edi, eax
test edi, edi
jne 0x405f2c
xor eax, eax
jmp 0x405f84
push edi
call fcn.004067e2
test byte [0x7a8278], 0x80
je 0x405f49
mov ax, word [edi]
test ax, ax
je 0x405f28
cmp ax, 0x5c
je 0x405f28
sub edi, esi
sar edi, 1
jmp 0x405f63
call fcn.00406891
test eax, eax
je 0x405f5d
test byte [eax], 0x10
je 0x405f28
push esi
call fcn.00405e4f
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405f4f
call fcn.00405e03
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 0x405fff
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 0x40601e
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 0x406024
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 0x406053
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 0x4060a3
test edi, edi
jne 0x406060
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x40609d
Function at 0x40617a
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 [0x7a4de8], 0x55004e
mov dword [0x7a4dec], 0x4c
mov edi, 0x400
mov ebp, 0x7a4de8
je 0x4061d0
push 1
push 0
push esi
call fcn.00406024
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4062ef
cmp eax, edi
jg 0x4062ef
mov esi, 0x7a55e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4062ef
cmp eax, edi
jg 0x4062ef
push esi
push ebp
push str._ls_ls_r_n
push 0x7a49e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a8270]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406571
push 4
push 0xc0000000
push esi
call fcn.00406024
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4062ef
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 0x4062e8
push edi
push esi
push ebp
call fcn.004060a7
test eax, eax
je 0x4062e8
push str._Rename__r_n
push esi
call fcn.00405f89
test eax, eax
jne 0x406286
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4062bb
add eax, 0xa
push 0x40a580
push eax
call fcn.00405f89
mov ebp, eax
test ebp, ebp
je 0x4062b7
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4062a8
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4062a2
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4062bd
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x7a49e8
push eax
call fcn.00405fdf
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.004060d6
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 0x4062f4
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 0x406317
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040617a
pop ecx
pop ecx
inc dword [0x7a82f0]
ret 8
Function at 0x406402
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], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004063a1
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406472
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 + 0x7fe], 0
test edi, edi
pop edi
jne 0x406472
cmp dword [ebp + 0xc], 1
je 0x406476
cmp dword [ebp + 0xc], 2
je 0x406476
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x4068b8
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 0x4068dc
xor eax, eax
test eax, eax
je 0x4068ef
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068ef
xor ecx, ecx
jmp 0x4068f2
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 0x406a15
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a5dec], 0
push esi
jne 0x406a4c
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 0x406a26
mov dword [ecx*4 + 0x7a5de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a21
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a7d
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 + 0x7a5de8]
xor eax, esi
inc ecx
dec edx
jne 0x406a5f
pop edi
not eax
pop esi
ret 0xc