joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8d61b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.008d6140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.008d6140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.008d6140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.008d6140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x8d6bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x8d6c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x8e887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x8d6c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x8d6c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401004
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push edi
push esi
push eax
mov eax, 0x4f5
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], eax
push 0x18
push 0x4488bd
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [0x44850d], eax
mov bl, byte [0x4470ea]
cmp bl, 0x25
je 0x4010c4
mov eax, 0xc1a
add eax, dword [str.wRP]
mov dword [ebp - 0x44], eax
mov dword [0x4484be], 0xc69
and dword [0x4484be], 0xff
mov ecx, dword [0x4484be]
mov dword [0x4486ef], ecx
mov dword [0x448323], 0xa8d
inc dword [0x448323]
mov edi, dword [0x448323]
mov dword [0x4482a3], edi
inc edx
mov eax, 0x14d
push eax
pop dword [0x448b6d]
mov eax, dword [0x448b6d]
mov dword [0x4487aa], eax
mov dword [0x44859f], 0xffc
add dword [0x44859f], 0x6e
and dword [0x44859f], 0xfff
mov edx, dword [0x44859f]
mov dword [0x448451], edx
push ebp
pop edi
dec eax
push 0x66
push 0
push dword [0x44720e]
push 0x69
push str.XHIFosDNCd
call dword [sym.imp.shell32.dll_ExtractIconExW]
mov dword [0x44880b], eax
push 0x7a
push 0x448486
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [0x448414], eax
mov dl, byte [0x447077]
cmp dl, 8
jne 0x4011e7
mov edi, 0x7f0
shr edi, 7
push edi
pop dword [0x448a7a]
xchg esi, eax
inc eax
mov dword [0x448363], 0x2f8
dec dword [0x448363]
mov esi, dword [0x448363]
mov dword [0x448224], esi
mov dword [0x448399], 0x268
or dword [0x448399], 8
sub dword [0x448399], 0x61
mov esi, dword [0x448399]
mov dword [0x4485ff], esi
mov edi, 0x54c
push edi
pop dword [0x4485a2]
inc dword [0x4485a2]
mov edi, dword [0x4485a2]
mov dword [0x448a22], edi
xchg esi, ebx
inc esi
inc ebx
inc eax
mov esi, 0x58a
mov dword [0x448372], esi
mov ebx, dword [0x448372]
mov dword [0x448608], ebx
mov eax, 0x389
shl eax, 7
mov dword [0x448a50], eax
mov dword [0x448389], eax
mov dword [0x448322], 0xc8c
dec dword [0x448322]
mov eax, dword [0x448322]
mov dword [0x44869d], eax
mov dword [0x448b40], 0x41f
and dword [0x448b40], 0xff
mov ecx, dword [0x448b40]
mov dword [0x4487bc], ecx
mov ebx, 0xc2e
add ebx, dword [str.wRP]
mov dword [ebp - 4], ebx
push 0x45
push 0x4485bb
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [0x448a46], eax
push 0x13
push dword [0x44726d]
push dword [0x447239]
push 0x2a
push str.rITumDEkf
call dword [sym.imp.shell32.dll_ExtractIconExW]
mov dword [0x4489ce], eax
mov dword [0x4489c2], 0xa28
or dword [0x4489c2], 0x58
mov ebx, dword [0x4489c2]
mov dword [0x44859a], ebx
mov esi, 0xb7b
push esi
pop dword [0x448742]
mov dword [ebp - 0x3c], esi
mov edi, 0xd18
push edi
pop dword [0x4483ca]
and dword [0x4483ca], 0xff
mov esi, dword [0x4483ca]
mov dword [0x4487b0], esi
push 0x59
push 0x4488ad
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [0x4485fc], eax
pop eax
pop esi
pop edi
leave
ret 4
Function at 0x401458
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
push esi
push eax
mov eax, 0x8b8
mov dword [0x448400], eax
push eax
pop dword [0x448451]
mov eax, 0xee5
add eax, dword [0x4471cd]
push eax
pop dword [0x448890]
mov eax, 0xa23
shl eax, 5
mov dword [0x44853b], eax
mov edi, 0x761
add edi, dword [0x44712f]
and edi, 0xffff
mov dword [0x448773], edi
mov dword [0x4488a5], 0xb24
add dword [0x4488a5], 0x29
test dword [0x4488a5], 0x21
jne 0x4014cb
dec dword [0x4488a5]
mov esi, dword [0x4488a5]
mov dword [0x4482bd], esi
mov eax, 0xabc
and eax, 0xff
push eax
pop dword [0x448b2a]
mov edx, 0x59a
shl edx, 8
ror edx, 9
mov dword [0x4482d1], edx
push 0x72
push 0x4483f9
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [0x4489d0], eax
mov dword [0x4484de], 0x4b0
and dword [0x4484de], 0xfff
mov ebx, dword [0x4484de]
mov dword [0x448940], ebx
mov edi, 0xb43
mov dword [0x448519], edi
add edi, dword [0x447171]
mov dword [ebp - 8], edi
mov esi, 0x63c
sub esi, 0xaaa
mov dword [0x448210], esi
mov dword [0x448a05], 0x25f
dec dword [0x448a05]
test dword [0x448a05], 0x52
jne 0x401572
inc dword [0x448a05]
mov edi, dword [0x448a05]
mov dword [0x448280], edi
mov esi, 0x344
mov dword [0x448389], esi
inc dword [0x448389]
mov ebx, dword [0x448389]
mov dword [0x4485b1], ebx
push 0x2a
push 0
push dword [0x447347]
push 0x6f
push str.XHIFosDNCd
call dword [sym.imp.shell32.dll_ExtractIconExW]
mov dword [0x448a20], eax
push 0x4b
push 0
push dword [0x447239]
push 0x6a
push str.knBNB
call dword [sym.imp.shell32.dll_ExtractIconExW]
mov dword [0x448a36], eax
pop eax
pop esi
pop edi
leave
ret 0x14

Function at 0x4015e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
push esi
push eax
mov edi, 0x28c
add edi, 0xcb5
ror edi, 0xe
mov dword [0x448204], edi
mov ebx, 0x7bc
mov dword [0x4482fb], ebx
cmp dword [0x4482fb], 0xb2
jne 0x40161a
dec dword [0x4482fb]
mov ebx, dword [0x4482fb]
mov dword [0x4486dd], ebx
mov edx, 0x95a
shr edx, 2
mov dword [ebp - 0x28], edx
push 0x4a
push 0x448777
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [0x448270], eax
mov dword [0x448a98], 0x93c
or dword [0x448a98], 0x560
mov edi, dword [0x448a98]
mov dword [0x4488ac], edi
mov edx, 0x8b4
sub edx, dword [0x447077]
ror edx, 0x1e
mov dword [ebp - 0x18], edx
mov edx, 0x9f1
and edx, 0xffff
shr edx, 4
mov dword [ebp - 0x20], edx
mov eax, 0xb98
mov dword [0x44890f], eax
mov esi, dword [0x44890f]
mov dword [0x448a40], esi
push 0x31
push dword [0x4470e1]
push 0
push 0x36
push str.DQQVkDX
call dword [sym.imp.shell32.dll_ExtractIconExW]
mov dword [0x44832a], eax
mov ecx, 0x3a2
and ecx, 0xfff
mov dword [ebp - 0x18], ecx
pop eax
pop esi
pop edi
leave
ret 4
Function at 0x4016d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push edi
push esi
push eax
push 9
push 0x448206
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [0x448a7c], eax
push 0x1f
push dword [0x4473a1]
push dword [0x447239]
push 0x6b
push str.nsvPbP
call dword [sym.imp.shell32.dll_ExtractIconExW]
mov dword [0x44856b], eax
push 0x44
push 0x448518
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [0x448529], eax
mov esi, 0x5f1
sub esi, dword [0x4473f8]
mov dword [ebp - 0x28], esi
mov dword [0x448a8f], 0x419
dec dword [0x448a8f]
inc dword [0x448a8f]
mov ebx, dword [0x448a8f]
mov dword [0x44827e], ebx
mov esi, 0xe51
add esi, dword [0x44732c]
shr esi, 2
mov dword [ebp - 0x3c], esi
mov eax, 0x100
sub eax, dword [0x4473f8]
mov dword [ebp - 0x48], eax
mov ecx, 0x2e0
sub ecx, dword [0x447171]
mov dword [ebp - 0x4c], ecx
mov eax, 0x6e8
mov dword [0x448499], eax
mov dword [ebp - 0xc], eax
mov eax, 0xea
shr eax, 7
shl eax, 2
mov dword [0x4489f2], eax
pop eax
pop esi
pop edi
leave
ret 0xc
Function at 0x4210b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4210d5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4210e0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4210d5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x421128
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x42111e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x42112a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x421110
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4036c1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4036ec
mov ecx, dword [0x42cc58]
push esi
add eax, ecx
push esi
push eax
mov dword [0x42206c], eax
push dword [0x40ad1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004037c9
cmp eax, esi
jl 0x4037c3
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40ad1c]
call fcn.00406588
test eax, eax
je 0x4037b3
push dword [ebp + 8]
add dword [0x42206c], 4
call fcn.004037c9
mov ebx, eax
cmp ebx, esi
jl 0x4037c1
cmp dword [ebp + 0x10], esi
jne 0x40378f
cmp dword [ebp + 8], esi
jle 0x4037c1
mov esi, 0x416068
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403751
mov eax, 0x4000
push eax
push esi
push dword [0x40ad1c]
mov dword [ebp - 4], eax
call fcn.00406588
test eax, eax
je 0x4037b3
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.004065b7
test eax, eax
je 0x40378b
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x42206c], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403740
jmp 0x4037c1
push 0xfffffffffffffffe
jmp 0x4037b5
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40379a
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40ad1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4037b8
push 0xfffffffffffffffd
pop eax
jmp 0x4037c3
mov ebx, dword [ebp - 4]
add dword [0x42206c], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405eed
Capabilities:
Create directory

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

Function at 0x405f9f
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004064e0
mov edi, eax
cmp edi, 0xffffffff
je 0x4060c1
test byte [esp + 0x10], 1
push esi
je 0x4060a3
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4060a9
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4060b2
xor eax, eax
inc eax
jmp 0x4060c3
test byte [esp + 0x10], 4
jne 0x4060c1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4060c8
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
mov esi, dword [ebp + 8]
mov eax, ebx
push edi
and eax, 4
push esi
mov dword [ebp - 4], eax
call fcn.004063ec
test bl, 8
mov dword [ebp - 8], eax
je 0x406107
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42cc88], eax
jmp 0x4062dd
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x406121
test eax, eax
je 0x40625f
test bl, 2
je 0x40625f
mov edi, 0x4268c0
push esi
push edi
call fcn.00406a0f
cmp dword [ebp + 8], 0
je 0x406140
push str..
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x406146
push esi
call fcn.00406330
cmp word [esi], 0
jne 0x406156
cmp word [0x4268c0], 0x5c
jne 0x406161
push 0x40a524
push esi
call sub.KERNEL32.dll_lstrcatW
push esi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [esi + eax*2]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406254
cmp word [ebp - 0x22c], 0x2e
jne 0x4061b3
cmp word [ebp - 0x22a], 0
je 0x406237
cmp word [ebp - 0x22a], 0x2e
jne 0x4061b3
cmp word [ebp - 0x228], 0
je 0x406237
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406a0f
test byte [ebp - 0x258], 0x10
je 0x4061de
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406237
push dword [ebp + 0xc]
push esi
call fcn.004060c8
jmp 0x406237
push esi
push str.Delete:_DeleteFile___s__
call fcn.00406f6f
pop ecx
pop ecx
push dword [ebp - 4]
push esi
call fcn.00406080
test eax, eax
push esi
jne 0x406230
cmp dword [ebp - 4], eax
je 0x40621c
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406f6f
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.004059e9
push 0
push esi
call fcn.004067d5
jmp 0x406237
push str.Delete:_DeleteFile_failed___s__
call fcn.00406f6f
inc dword [0x42cc88]
pop ecx
pop ecx
jmp 0x406237
push 0xfffffffffffffff2
call fcn.004059e9
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406183
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40625f
and word [ebx - 2], 0
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4062dd
cmp dword [ebp - 8], edi
push esi
jne 0x406280
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00406f6f
inc dword [0x42cc88]
pop ecx
pop ecx
jmp 0x4062dd
call fcn.00406fa0
test eax, eax
je 0x4062dd
push esi
call fcn.004062e4
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406f6f
mov eax, dword [ebp - 4]
pop ecx
pop ecx
or al, 1
push eax
push esi
call fcn.00406080
test eax, eax
push esi
jne 0x4062d6
cmp dword [ebp - 4], edi
je 0x4062cf
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406f6f
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.004059e9
push edi
push esi
call fcn.004067d5
jmp 0x4062dd
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x406271
push 0xffffffffffffffe5
call fcn.004059e9
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4063ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4270c0
push esi
call fcn.00406a0f
push esi
call fcn.0040638f
mov edi, eax
test edi, edi
jne 0x40640d
xor eax, eax
jmp 0x406465
push edi
call fcn.00406ca3
test byte [0x42cbfc], 0x80
je 0x40642a
mov ax, word [edi]
test ax, ax
je 0x406409
cmp ax, 0x5c
je 0x406409
sub edi, esi
sar edi, 1
jmp 0x406444
call fcn.00406fa0
test eax, eax
je 0x40643e
test byte [eax], 0x10
je 0x406409
push esi
call fcn.00406330
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x406430
call fcn.004062e4
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 0x4064e0
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 0x4064ff
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 0x406505
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 0x406534
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 [0x40b520]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40b524]
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 0x406584
test edi, edi
jne 0x406541
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x40657e
Function at 0x40665b
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 [0x427f58], 0x55004e
mov dword [0x427f5c], 0x4c
mov edi, 0x400
mov ebp, 0x427f58
je 0x4066b1
push 1
push 0
push esi
call fcn.00406505
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4067d0
cmp eax, edi
jg 0x4067d0
mov esi, 0x428758
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4067d0
cmp eax, edi
jg 0x4067d0
push esi
push ebp
push str._ls_ls_r_n
push 0x427b58
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42cbf4]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406a31
push 4
push 0xc0000000
push esi
call fcn.00406505
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4067d0
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 0x4067c9
push edi
push esi
push ebp
call fcn.00406588
test eax, eax
je 0x4067c9
push str._Rename__r_n
push esi
call fcn.0040646a
test eax, eax
jne 0x406767
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40679c
add eax, 0xa
push 0x40b528
push eax
call fcn.0040646a
mov ebp, eax
test ebp, ebp
je 0x406798
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406789
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406783
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40679e
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x427b58
push eax
call fcn.004064c0
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.004065b7
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 0x4067d5
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 0x4067f8
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040665b
pop ecx
pop ecx
inc dword [0x42cc90]
ret 8
Function at 0x4068dd
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.0040687c
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x40694d
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 0x40694d
cmp dword [ebp + 0xc], 1
je 0x406951
cmp dword [ebp + 0xc], 2
je 0x406951
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406fc7
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 0x406feb
xor eax, eax
test eax, eax
je 0x406ffe
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406ffe
xor ecx, ecx
jmp 0x407001
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a524]
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 0x40712a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x428f5c], 0
push esi
jne 0x407161
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 0x40713b
mov dword [ecx*4 + 0x428f58], eax
inc ecx
cmp ecx, 0x100
jl 0x407136
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x407192
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 + 0x428f58]
xor eax, esi
inc ecx
dec edx
jne 0x407174
pop edi
not eax
pop esi
ret 0xc