joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c502
Capabilities:
Get file version info

Disassembly:
push 0x48
mov eax, 0x4af82d
call fcn.0048bc3b
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp + 8]
call fcn.0040387f
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
je 0x40c68a
push ecx
mov dword [ebp - 0x1c], esp
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x1c], esp
call fcn.004107ea
mov dword [ebp - 4], esi
lea eax, [ebp - 0xd]
push eax
push edi
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 0xd], bl
call fcn.00410924
mov dword [ebp - 4], 2
push ebx
lea ecx, [ebp - 0x54]
call fcn.00410268
push eax
push edi
push ebx
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40c67f
push ebx
lea ecx, [ebp - 0x54]
call fcn.00410268
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040c464
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
xor edi, edi
sar eax, 2
test eax, eax
jbe 0x40c672
lea ecx, [ebp - 0x14]
call fcn.0040387f
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
mov ecx, eax
sub ecx, dword [ebp - 0x30]
sar ecx, 2
cmp edi, ecx
jb 0x40c5d5
call fcn.00488376
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
sub eax, ecx
sar eax, 2
lea esi, [ecx + edi*4]
cmp edi, eax
jb 0x40c5e9
call fcn.00488376
push dword [ebp + 0x10]
movzx eax, word [esi + 2]
push eax
mov eax, dword [ebp - 0x30]
movzx eax, word [eax + edi*4]
push eax
lea eax, [ebp - 0x14]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.004120c7
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x54]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00410268
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c638
cmp dword [ebp - 0x1c], ebx
je 0x40c638
cmp dword [ebp - 0x18], ebx
ja 0x40c658
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00403910
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
inc edi
sar eax, 2
cmp edi, eax
jb 0x40c5b2
jmp 0x40c672
push dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x1c]
call fcn.0040f603
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00403910
mov byte [ebp - 4], 2
lea eax, [ebp - 0x3c]
push eax
call fcn.004101a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x54]
call fcn.0041023e
mov eax, dword [ebp + 8]
call fcn.0048bd13
ret
Function at 0x40c9ef
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0x10
mov eax, 0x4af744
call fcn.0048bc3b
xor edi, edi
mov dword [ebp - 4], edi
cmp byte [ebp + 0x10], 0
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x14], edi
je 0x40ca2a
cmp byte [0x4ec9e8], 0
je 0x40ca23
cmp byte [ebp + 0x14], 0
je 0x40ca23
mov ebx, 0x20119
jmp 0x40ca43
mov ebx, 0x20019
jmp 0x40ca43
cmp byte [0x4ec9e8], 0
je 0x40ca3e
cmp byte [ebp + 0x14], 0
mov ebx, 0x20106
jne 0x40ca43
mov ebx, 0x20006
lea ecx, [ebp - 0x18]
call fcn.0040387f
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.0040387f
mov byte [ebp - 4], 2
push 0x5c
lea ecx, [ebp + 0xc]
call fcn.00403d13
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ca7a
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x10]
call fcn.00404d62
jmp 0x40cacf
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
call fcn.00403dec
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x18]
call fcn.00404d62
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00403910
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040f4ea
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp + 0x10]
call fcn.00404d62
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00403910
cmp dword [ebp + 8], 0x80000001
jne 0x40caf8
push edi
push 0x4c2ce4
lea ecx, [ebp + 0x10]
call fcn.00403cda
cmp eax, 0xffffffff
jne 0x40caf8
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
jmp 0x40cb0a
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40cb75
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
xor bl, bl
jmp 0x40cb49
cmp eax, 2
je 0x40cb57
cmp eax, 5
jne 0x40cb6c
test bl, bl
jne 0x40cb6c
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.00403c4b
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040cd20
pop ecx
pop ecx
inc bl
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call esi
cmp eax, edi
jne 0x40cb18
jmp 0x40cb68
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
jne 0x40cb6c
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00403910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403910
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00403910
mov al, byte [ebp - 0xd]
call fcn.0048bd13
ret
Function at 0x40cba2
Capabilities:
Delete registry value

Disassembly:
push 8
mov eax, 0x4abc75
call fcn.0048bc3b
mov dword [ebp - 4], 1
xor ebx, ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
cmp byte [ebp + 0x14], bl
je 0x40cbe1
cmp byte [0x4ec9e8], bl
je 0x40cbda
cmp byte [ebp + 0x18], bl
je 0x40cbda
mov edi, 0x20119
jmp 0x40cbf8
mov edi, 0x20019
jmp 0x40cbf8
cmp byte [0x4ec9e8], bl
je 0x40cbf3
mov edi, 0x20106
cmp byte [ebp + 0x18], bl
jne 0x40cbf8
mov edi, 0x20006
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], ebx
je 0x40cc0b
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40cc36
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp eax, ebx
jne 0x40cc36
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], ebx
je 0x40cc44
push dword [ebp - 0x14]
call esi
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00403910
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00403910
mov al, byte [ebp - 0xd]
call fcn.0048bd13
ret

Function at 0x40cd20
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4d9114]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0xc
mov eax, 0x4af6b1
call fcn.0048bc3b
mov esi, dword [ebp + 0x80c]
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp + 0x810]
mov dword [ebp - 0x10], ebx
push esi
call fcn.0040ce1a
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
lea ecx, [ebp + 0x810]
call fcn.0040f683
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cde8
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
cmp dword [ebp - 0x14], ebx
jbe 0x40cddf
push 0x400
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x40cdd9
push ecx
lea eax, [ebp]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00403c71
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040cd20
pop ecx
pop ecx
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x40cda2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x810]
call fcn.00403910
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004876e8
add ebp, 0x804
leave
ret
Function at 0x40d1ff
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x4d9114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov esi, ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x23c], eax
cmp eax, 0xffffffff
jne 0x40d23c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004876e8
leave
ret
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
mov dword [ebp - 0x238], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40d26e
xor esi, esi
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x40d22d
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x40d27d
and dword [ebp - 0x240], ecx
jmp 0x40d290
mov eax, dword [esi + 0x14]
sub eax, ecx
cdq
mov edi, 0x22c
idiv edi
mov dword [ebp - 0x240], eax
mov edi, dword [esi + 0x10]
mov eax, edi
sub eax, ecx
cdq
mov ebx, 0x22c
idiv ebx
cmp eax, dword [ebp - 0x240]
jae 0x40d2bb
lea eax, [ebp - 0x238]
push eax
push 1
push edi
call fcn.00410a51
mov dword [esi + 0x10], eax
jmp 0x40d2dd
cmp ecx, edi
jbe 0x40d2c4
call fcn.00488376
mov eax, dword [esi]
push edi
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x248]
push eax
mov eax, esi
call fcn.0041099e
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40d26e
xor esi, esi
inc esi
jmp 0x40d25e
Function at 0x40d69b
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push 0x18
mov eax, 0x4b0d8e
call fcn.0048bca4
mov esi, ecx
lea ecx, [ebp - 0x24]
call fcn.0041ccc7
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x40d7d3
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040d176
pop ecx
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 0xc], 1
mov byte [ebp - 0x19], bl
jge 0x40d6e5
push 0x80070057
call fcn.0040101f
movzx eax, word [ecx + 2]
cmp ax, 0x3a
jne 0x40d6fe
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d6fe
mov byte [ebp - 0x19], 1
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 0x11], bl
call esi
cmp eax, 0xffffffff
je 0x40d715
test al, 0x10
jne 0x40d738
push ebx
push str.hkey_
lea ecx, [ebp - 0x18]
call fcn.00403cda
test eax, eax
je 0x40d738
push dword [ebp - 0x18]
call fcn.0040d3cf
pop ecx
test al, al
je 0x40d738
mov byte [ebp - 0x11], 1
cmp byte [ebp + 0xc], bl
je 0x40d747
push dword [edi]
push dword [ebp - 0x18]
call fcn.00403662
push dword [ebp - 0x18]
call esi
cmp eax, 0xffffffff
je 0x40d773
test al, 0x10
je 0x40d773
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x11]
push dword [ebp + 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.0040d7e7
add esp, 0x1c
jmp 0x40d78a
push 0x80
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 0x19], bl
je 0x40d7c3
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d7c3
push 4
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00403910
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041ccf6
xor al, al
jmp 0x40d7e1
cmp byte [ebp - 0x11], bl
jne 0x40d7a8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00403910
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041ccf6
mov al, 1
call fcn.0048bd27
ret
Function at 0x40d7e7
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push 0x268
mov eax, 0x4b0d56
call fcn.0048bca4
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x20]
push str..
lea eax, [ebp - 0x270]
push ebx
push eax
call fcn.00403e3d
add esp, 0xc
and dword [ebp - 4], 0
mov eax, dword [eax]
lea ecx, [ebp - 0x264]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x270]
call fcn.00403910
cmp dword [ebp - 0x26c], 0xffffffff
je 0x40d9d3
mov ecx, 0x4c3720
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d87b
test dx, dx
je 0x40d877
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d87b
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d855
xor eax, eax
jmp 0x40d880
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d9ac
mov ecx, 0x4c3724
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d8b9
test dx, dx
je 0x40d8b5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d8b9
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d893
xor eax, eax
jmp 0x40d8be
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d9ac
push 0x4c2ce4
lea eax, [ebp - 0x274]
push ebx
push eax
call fcn.00403e3d
add esp, 0xc
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x238]
push ecx
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00403e3d
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x274]
call fcn.00403910
test byte [ebp - 0x264], 0x10
je 0x40d93a
push edi
push dword [ebp + 0x1c]
lea eax, [ebp - 0x268]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push eax
call fcn.0040d7e7
add esp, 0x1c
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp byte [ebp + 0x14], 0
je 0x40d94d
push dword [edi]
push dword [ebp - 0x268]
call fcn.00403662
push 0x80
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x268]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d99d
push dword [ebp - 0x268]
call fcn.0040d3cf
pop ecx
test al, al
je 0x40d99d
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40d99d
mov byte [esi], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.00403910
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d84a
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
je 0x40d9e1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call fcn.0048bd27
ret
Function at 0x40e31c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4af49a
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4d9114]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
mov eax, dword [0x4d9114]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea edx, [esp + 0x10]
push edx
push 9
xor ebx, ebx
push ebx
push ecx
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40e440
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push ebx
push dword [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40e436
cmp dword [esp + 0xc], ebx
je 0x40e436
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40e436
push ebx
inc eax
push eax
lea ecx, [esp + 0x24]
call fcn.0040f9bb
mov dword [esp + 0x48], ebx
xor esi, esi
cmp dword [esp + 0xc], ebx
jbe 0x40e425
push dword [esp + 0x30]
lea ecx, [esp + 0x20]
push ebx
call fcn.0040fa27
push eax
push esi
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, ebx
jne 0x40e41e
push ebx
lea ecx, [esp + 0x20]
call fcn.0040fa27
push eax
lea ecx, [esp + 0x1c]
call fcn.00403c71
mov byte [esp + 0x48], 1
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.0041013e
mov byte [esp + 0x48], bl
lea ecx, [esp + 0x18]
call fcn.00403910
inc esi
cmp esi, dword [esp + 0xc]
jb 0x40e3ce
or dword [esp + 0x48], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0x24]
call fcn.0040515f
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004876e8
mov esp, ebp
pop ebp
ret
Function at 0x40e745
Capabilities:
Query environment variable

Disassembly:
push 0x48
mov eax, 0x4ae0bf
call fcn.0048bca4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov esi, ecx
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
call fcn.004040b1
mov dword [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push ebx
push esi
call edi
mov ecx, dword [ebp - 0x4c]
mov esi, eax
inc esi
inc esi
call fcn.0040387f
push ebx
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x54], 1
call fcn.0040f9bb
mov byte [ebp - 4], 2
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040fa27
push eax
push dword [ebp - 0x50]
call edi
test eax, eax
je 0x40e7c9
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40e7c0
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.00405c8e
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040515f
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040515f
mov eax, dword [ebp - 0x4c]
call fcn.0048bd27
ret

Function at 0x40eee2
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x4ae07b
call fcn.0048bc3b
xor ebx, ebx
mov dword [ebp - 4], ebx
push 8
call fcn.00488856
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
cmp esi, ebx
je 0x40ef1c
mov ecx, esi
call fcn.0040387f
mov byte [ebp - 4], 1
lea ecx, [esi + 4]
call fcn.0040387f
mov byte [ebp - 4], bl
jmp 0x40ef1e
xor esi, esi
lea eax, [ebp + 8]
lea ecx, [esi + 4]
push eax
call fcn.00404d62
push ebx
push ebx
push esi
push 0x40eda1
push ebx
push ebx
call fcn.00488169
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403910
call fcn.0048bd13
ret

Function at 0x412c0b
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x4b14bd
call fcn.0048bc3b
mov esi, 0x4ec9f4
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.0040387f
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0040c3dc
mov byte [ebp - 4], 1
push 0x4c3e34
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403e3d
add esp, 0x14
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.00404d62
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00403910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00403910
push dword [0x4ec9f4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
push ebx
push 4
push ebx
push 3
push 0x40000000
push dword [0x4ec9f4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x412c9e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0048bd13
ret
Function at 0x413947
Capabilities:
Create thread

Disassembly:
push 0x34
mov eax, 0x4b1f57
call fcn.0048bc3b
mov esi, 0x4ec8d8
call fcn.004146ba
call fcn.0041caae
xor edi, edi
push edi
push edi
push esi
push 0x414975
push edi
push edi
call fcn.00488169
add esp, 0x18
call fcn.00413879
call fcn.0041374e
lea eax, [ebp - 0x10]
push eax
call fcn.0040e24a
pop ecx
mov dword [ebp - 4], edi
push dword [eax]
lea eax, [ebp - 0x40]
push eax
call fcn.0040153e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00403910
lea eax, [ebp - 0x40]
push eax
call fcn.004087c9
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x40]
push eax
call fcn.004015cc
call fcn.00484440
mov esi, eax
cmp esi, edi
je 0x4139f3
mov ecx, esi
call fcn.00482490
test al, al
jne 0x4139f3
push edi
mov ecx, esi
call fcn.00482850
test al, al
je 0x4139f3
push 0x41313e
mov ecx, esi
call fcn.00484e70
test al, al
je 0x4139f3
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
call fcn.0048bd13
ret
Function at 0x4146ba
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push esi
push 0x4146d5
push eax
push eax
call fcn.00488169
add esp, 0x18
mov dword [esi + 0x10c], eax
ret

Function at 0x417599
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
test esi, esi
jbe 0x4175ae
sub ecx, eax
mov dl, byte [ecx + eax]
xor dl, 0x67
mov byte [eax], dl
inc eax
dec esi
jne 0x4175a2
pop esi
ret

Function at 0x41769f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, eax
lea edi, [ebx + 4]
mov ecx, 0x108
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x14]
push eax
mov edi, 0x208
lea esi, [ebp - 4]
mov eax, edi
call fcn.004174b5
test eax, eax
jge 0x4176d1
push 0x57
pop eax
jmp 0x41770a
add ebx, 0x21c
push ebx
lea esi, [ebp - 4]
mov eax, edi
call fcn.004174b5
test eax, eax
jl 0x4176cc
mov eax, dword [ebp + 8]
test byte [eax + 4], 1
je 0x417708
call fcn.00418ce6
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x417708
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41770a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x417d8b
Capabilities:
Delete file

Disassembly:
add ecx, 0x21c
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
ret

Function at 0x4181b1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, eax
lea edi, [ebx + 4]
mov ecx, 0x108
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x10]
push eax
mov edi, 0x208
lea esi, [ebp - 4]
mov eax, edi
call fcn.004174b5
test eax, eax
jge 0x4181e3
push 0x57
pop eax
jmp 0x41821c
add ebx, 0x218
push ebx
lea esi, [ebp - 4]
mov eax, edi
call fcn.004174b5
test eax, eax
jl 0x4181de
mov eax, dword [ebp + 8]
test byte [eax + 4], 1
je 0x41821a
call fcn.00418ce6
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41821a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41821c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x418223
Capabilities:
Delete file
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push edi
mov edi, eax
and eax, 0x100
xor ebx, ebx
and edi, 0xfffffcff
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0xf023f
test byte [esi + 8], 1
mov dword [ebp - 8], eax
jne 0x4182a8
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
lea eax, [esi + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x41828c
push 2
push eax
lea eax, [esi + 0x218]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x41828c
or dword [esi + 8], 1
jmp 0x418299
lea eax, [esi + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 4], 0
je 0x4182a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [esi + 8], 2
jne 0x4182f2
test ebx, ebx
jne 0x4182f2
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
lea eax, [esi + 0x10]
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4182ed
push ebx
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x4182dd
or dword [esi + 8], 2
jmp 0x4182e2
mov ebx, 0x15e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4182f2
mov ebx, 0x15e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x4183b5
Capabilities:
Delete file

Disassembly:
add ecx, 0x218
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
ret