joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45373e
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x28
mov eax, 0x6a66ce
call fcn.0056e23b
mov ebx, ecx
mov dword [ebp - 0x34], ebx
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0x30], esi
call fcn.004536df
mov edi, eax
test edi, edi
jne 0x453810
lea ecx, [ebp - 0x2c]
call fcn.004173bc
and dword [ebp - 4], edi
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x45377d
mov eax, dword [esi]
jmp 0x45377f
mov eax, esi
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov ecx, ebx
call fcn.0045381a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x453773
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.004248f3
cmp dword [esi + 0x14], 8
jb 0x4537b7
mov eax, dword [esi]
jmp 0x4537b9
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4537de
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x4537db
call ebx
mov edi, eax
jmp 0x453804
mov ebx, dword [ebp - 0x34]
mov ecx, ebx
call fcn.004d281a
cmp eax, 5
jne 0x453804
cmp dword [esi + 0x14], 8
jb 0x4537f2
mov esi, dword [esi]
push esi
mov ecx, ebx
call fcn.00453b92
test al, al
mov ecx, 0x65b
cmove edi, ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041786a
mov eax, edi
call fcn.0056e1e5
ret 4

Function at 0x453af5
Capabilities:
Delete directory

Disassembly:
push 0x24
mov eax, 0x690f1b
call fcn.0056e23b
mov edi, ecx
mov esi, dword [ebp + 8]
jmp 0x453b2f
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x453b18
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esi]
mov ecx, esi
push dword [eax + 4]
lea eax, [ebp - 0x30]
push eax
call fcn.0043ae6c
cmp dword [esi + 4], 0
jne 0x453b08
lea ecx, [ebp - 0x2c]
call fcn.004173bc
and dword [ebp - 4], 0
lea eax, [edi + 0xa0]
cmp dword [eax + 0x14], 8
jb 0x453b4f
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.004d282d
movzx eax, ax
push eax
lea eax, [ebp - 0x2c]
push 0x6b7554
push eax
call fcn.0041ccda
add esp, 0x10
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041786a
call fcn.0056e1e5
ret 4
Function at 0x454909
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
lea eax, [esi + 0x10]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
xor esi, esi
mov dword [ebp + 0xc], eax
inc esi
push dword [ebp + 0x14]
xor eax, eax
mov ecx, edi
push dword [ebp + 0x10]
shr ecx, 0x1e
xor eax, edi
xor ecx, ebx
push eax
push ecx
call fcn.0056eaa0
mov ebx, eax
mov edi, edx
mov eax, esi
cdq
add ebx, eax
mov eax, dword [ebp + 0xc]
adc edi, edx
inc esi
mov dword [eax], ebx
mov dword [eax + 4], edi
add eax, 8
mov dword [ebp + 0xc], eax
mov eax, 0x138
cmp esi, eax
jl 0x45492a
mov esi, dword [ebp - 4]
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x455da4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x6a66ce
call fcn.0056e23b
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
call fcn.004173bc
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0xc]
push eax
call fcn.0041ccda
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x20019
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00567b83
mov edi, eax
add esp, 0x18
test edi, edi
je 0x455e67
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push eax
push ebx
push ebx
push ebx
push 0x6ba354
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x455e60
cmp dword [ebp - 0x30], eax
je 0x455e60
push dword [ebp - 0x30]
call fcn.0056e306
mov esi, eax
pop ecx
test esi, esi
je 0x455e60
lea eax, [ebp - 0x30]
push eax
push esi
push ebx
push ebx
push str.CachePath
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x455e56
cmp dword [ebp - 0x30], eax
je 0x455e56
mov ebx, dword [ebp - 0x34]
mov ecx, ebx
push esi
call fcn.004179fb
add ebx, 4
cmp dword [ebx + 0x14], 8
jb 0x455e56
mov ebx, dword [ebx]
push 1
push esi
call fcn.0056df27
pop ecx
pop ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041786a
mov eax, ebx
call fcn.0056e1e5
ret
Function at 0x455e7b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x6a66ce
call fcn.0056e23b
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0x34], eax
call fcn.004173bc
mov dword [ebp - 4], edi
lea eax, [ebp - 0x2c]
push esi
push dword [ebp + 0xc]
push eax
call fcn.0041ccda
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x20019
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00567b83
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x455f3a
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], edi
push eax
push edi
push edi
push edi
push 0x6b9e44
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x455f33
cmp dword [ebp - 0x30], eax
je 0x455f33
push dword [ebp - 0x30]
call fcn.0056e306
mov esi, eax
pop ecx
test esi, esi
je 0x455f33
lea eax, [ebp - 0x30]
push eax
push esi
push edi
push edi
push 0x6ba02c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x455f29
cmp dword [ebp - 0x30], eax
je 0x455f29
mov edi, dword [ebp - 0x34]
mov ecx, edi
push esi
call fcn.004179fb
add edi, 4
cmp dword [edi + 0x14], 8
jb 0x455f29
mov edi, dword [edi]
push 1
push esi
call fcn.0056df27
pop ecx
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041786a
mov eax, edi
call fcn.0056e1e5
ret

Function at 0x456107
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2c
mov eax, 0x68f874
call fcn.0056e23b
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
test edi, edi
je 0x4561ca
lea ecx, [ebp - 0x2c]
call fcn.004173bc
mov dword [ebp - 4], esi
mov ecx, edi
call fcn.0049aa06
push eax
lea eax, [ebp - 0x2c]
push 0x6b92e8
push eax
call fcn.0041ccda
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x20019
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00567b83
add esp, 0x14
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4561be
push 0x208
call fcn.0056e306
mov edi, eax
pop ecx
test edi, edi
je 0x4561b5
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x208
push eax
push edi
lea eax, [ebp - 0x38]
push eax
push esi
push 0x6b9388
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4561ab
push edi
mov ecx, ebx
call fcn.004179fb
lea esi, [ebx + 4]
cmp dword [esi + 0x14], 8
jb 0x4561ab
mov esi, dword [esi]
push 2
push edi
call fcn.0056df27
pop ecx
pop ecx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041786a
mov eax, esi
call fcn.0056e1e5
ret
Function at 0x4561d2
Capabilities:
Get hostname

Disassembly:
push 0x240
mov eax, 0x68a4ac
call fcn.0056e23b
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x24c], 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x4562d5
lea ecx, [ebp - 0x248]
call fcn.004173bc
and dword [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.004173bc
mov byte [ebp - 4], 1
call fcn.005657fe
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x248]
push 0x6b8e58
push eax
call fcn.0041ccda
cmp dword [ebp - 0x230], 8
lea ecx, [ebp - 0x22c]
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push ecx
push eax
call fcn.004d2485
add esp, 0x18
test eax, eax
je 0x4562b7
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
mov ecx, esi
cmovae eax, dword [ebp - 0x228]
push eax
call fcn.004179fb
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x456295
mov esi, dword [esi]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.0041786a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.0041786a
mov eax, esi
jmp 0x4562d7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.0041786a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.0041786a
xor eax, eax
call fcn.0056e1e5
ret

Function at 0x4563f6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x208
xor esi, esi
call fcn.0056e306
mov edi, eax
pop ecx
test edi, edi
je 0x45643b
push esi
push dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x456434
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
call fcn.004179fb
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x456434
mov esi, dword [esi]
push edi
call fcn.0056e30f
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4576d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
test eax, eax
je 0x4576ed
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
add esp, 0xc
jmp 0x457747
push esi
push dword [ebp + 0xc]
call fcn.0056e306
mov esi, eax
pop ecx
test esi, esi
je 0x457743
push dword [ebp + 0xc]
and dword [ebp + 0x10], 0
push 0
push esi
call fcn.00644240
add esp, 0xc
lea eax, [ebp + 0x10]
push 0
push eax
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 1
push esi
test eax, eax
je 0x457734
call fcn.0056df27
pop ecx
pop ecx
xor eax, eax
jmp 0x457746
call fcn.0056df27
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x457746
push 0xe
pop eax
pop esi
pop ebp
ret 0xc

Function at 0x460d60
Capabilities:
Get volume information via ioctl

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x60
push dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 8]
push esi
push esi
push 0x90064
push eax
push esi
push esi
push esi
push dword [ecx + 0x28]
call dword [ecx + 0x254]
xor ecx, ecx
inc ecx
test eax, eax
cmovne esi, ecx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x460de8
Capabilities:
Read file on windows

Disassembly:
push 0x88
mov eax, 0x68b65c
call fcn.0056e23b
mov edi, ecx
call fcn.00460daa
test eax, eax
je 0x460e0c
mov eax, 0x4df
jmp 0x460fc6
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x90], ebx
call fcn.004173bc
mov dword [ebp - 4], ebx
push 0x6bd500
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x260], eax
test eax, eax
jne 0x460e41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x460faf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6bd514
push eax
call esi
mov dword [edi + 0x254], eax
test eax, eax
je 0x460e34
push 0x6bd524
push dword [edi + 0x260]
call esi
mov dword [edi + 0x258], eax
test eax, eax
je 0x460e34
push str.RtlNtStatusToDosError
push dword [edi + 0x260]
call esi
mov dword [edi + 0x25c], eax
test eax, eax
je 0x460e34
mov si, word [ebp + 8]
movzx eax, si
push eax
lea eax, [edi + 8]
push str.__c:
push eax
call fcn.0041ccda
lea eax, [edi + 0xc]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x460eab
mov eax, dword [eax]
push ebx
push 0x20000000
push 3
push ebx
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [edi + 0x28], ecx
cmp ecx, 0xffffffff
je 0x460e34
push ebx
lea eax, [ebp - 0x90]
mov word [edi + 0x24], si
push eax
push 0x18
lea eax, [edi + 0x30]
push eax
push ebx
push ebx
push 0x70000
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x460e34
push dword [edi + 0x44]
call fcn.0056e306
mov esi, eax
mov dword [ebp - 0x94], esi
pop ecx
test esi, esi
je 0x460fac
push ebx
lea eax, [ebp - 0x90]
push eax
push dword [edi + 0x44]
push esi
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x460f93
push 0x200
lea eax, [edi + 0x48]
push esi
push eax
call fcn.00643300
push 1
push esi
call fcn.0056df27
add esp, 0x14
lea eax, [ebp - 0x8c]
mov ecx, edi
push eax
call fcn.00460d60
mov esi, eax
test esi, esi
jne 0x460faf
mov eax, dword [ebp - 0x5c]
mov dword [edi + 0x250], eax
movzx eax, byte [edi + 0x55]
cdq
mov esi, eax
mov ecx, edx
movzx eax, word [edi + 0x53]
cdq
push edx
push eax
push ecx
push esi
call fcn.0056eaa0
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push edx
push eax
call fcn.0056eaa0
mov dword [edi + 0x248], eax
mov dword [edi + 0x24c], edx
jmp 0x460fb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push dword [ebp - 0x94]
mov esi, eax
call fcn.0056df27
pop ecx
pop ecx
jmp 0x460faf
push 0xe
pop esi
mov ecx, edi
call fcn.00460c46
mov ebx, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041786a
mov eax, ebx
call fcn.0056e1e5
ret 4
Function at 0x461005
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 4], ecx
mov ebx, esi
test edi, edi
je 0x461050
push esi
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push eax
mov eax, dword [ebp + 8]
push edi
add eax, ebx
push eax
push dword [ecx + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x461048
cmp dword [ebp + 0xc], edi
jae 0x461050
add ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
sub edi, dword [ebp + 0xc]
jne 0x46101a
jmp 0x461050
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4659a1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x4c
mov eax, 0x68bbf4
call fcn.0056e23b
mov dword [ebp - 0x50], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x58]
xor edi, edi
mov eax, edi
mov dword [ebp - 0x4c], eax
call fcn.0041d3ed
xor eax, eax
inc eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x2c]
push esi
call fcn.0041d41a
mov byte [ebp - 4], 2
lea eax, [ebp - 0x44]
push 4
push edi
push eax
lea ecx, [ebp - 0x28]
call fcn.00407b80
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4659f0
mov eax, dword [eax]
push 0x6c0480
push eax
call fcn.0064806f
mov ebx, eax
neg ebx
pop ecx
pop ecx
sbb bl, bl
mov byte [ebp - 4], 2
xor eax, eax
lea ecx, [ebp - 0x44]
push edi
inc eax
push eax
call fcn.00401d60
add bl, 1
je 0x465a28
push 4
xor ebx, ebx
lea ecx, [ebp - 0x28]
push ebx
call fcn.00401c10
jmp 0x465a2a
xor ebx, ebx
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
push 8
pop edi
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
push dword [esi + 0x260]
call fcn.004552fa
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
lea eax, [ebp - 0x28]
je 0x465a86
cmp dword [ebp - 0x14], edi
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x465b75
xor eax, eax
inc eax
mov ebx, eax
jmp 0x465b78
cmp dword [ebp - 0x14], edi
lea ecx, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0046b513
cmp dword [ebp - 0x14], edi
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
mov ecx, esi
call fcn.0046b5a0
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.0046b2cc
cmp dword [ebp - 0x18], 0
ja 0x465aca
push str.invalid_string_position
call fcn.0056af4e
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax], 0x5c
je 0x465b15
push 4
push ebx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407b80
mov ecx, eax
mov byte [ebp - 4], 4
xor eax, eax
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ecx + 0x14], edi
jb 0x465afc
mov ecx, dword [ecx]
push 0x6c048c
push ecx
call fcn.0064806f
pop ecx
pop ecx
test eax, eax
je 0x465b15
xor ecx, ecx
inc ecx
mov byte [ebp - 0x45], cl
jmp 0x465b1b
xor ecx, ecx
mov byte [ebp - 0x45], bl
inc ecx
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x4c]
test al, 1
je 0x465b39
push ebx
and eax, 0xfffffffe
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x4c], eax
call fcn.00401d60
cmp byte [ebp - 0x45], 0
je 0x465b59
mov edi, 0x6c0498
push edi
call fcn.00647fd1
pop ecx
push eax
push edi
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040f900
push 8
pop edi
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
mov ecx, esi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0046abb0
test eax, eax
push 1
pop eax
cmovne ebx, eax
jmp 0x465b78
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x2c]
call fcn.0041786a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004246c9
mov eax, ebx
call fcn.0056e1e5
ret 4
Function at 0x4687b6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
mov dword [ebp - 4], eax
push edi
push edi
lea eax, [ebp - 8]
push eax
push 0x468f4a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, 0xfa
mov dword [ebp - 8], eax
push ebx
push eax
jmp 0x4687f8
push 2
push edi
push edi
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4687e5
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x468a25
Capabilities:
Create thread

Disassembly:
push 0x44
mov eax, 0x68c093
call fcn.0056e23b
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.00468422
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x34]
push esi
push str._s___s_
push eax
call fcn.0041ccda
add esp, 0xc
lea eax, [ebp - 0x34]
push edi
push edi
push eax
push 0x469390
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, 0xfa
mov dword [ebp - 0x18], eax
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push eax
jmp 0x468a8b
push 2
push edi
push edi
push edi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
push ebx
push dword [ebp - 0x18]
call esi
cmp eax, 0x102
je 0x468a78
mov esi, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0041786a
mov eax, esi
call fcn.0056e1e5
ret
Function at 0x468aab
Capabilities:
Create directory
Write file on windows

Disassembly:
push 0x38
mov eax, 0x6933bc
call fcn.0056e23b
mov edi, ecx
xor esi, esi
cmp dword [edi], 0xffffffff
jne 0x468c00
cmp dword [edi + 0x24], esi
jne 0x468c03
lea ecx, [ebp - 0x3c]
call fcn.004173bc
mov dword [ebp - 4], esi
mov eax, 0x7e7d5c
push 8
pop ebx
cmp dword [0x7e7d70], ebx
push esi
cmovae eax, dword [0x7e7d5c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x14]
mov ecx, 0x7e7d5c
cmp dword [0x7e7d70], ebx
push eax
movzx eax, word [ebp - 0x16]
cmovae ecx, dword [0x7e7d5c]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
push str.Regbackup
push ecx
lea eax, [ebp - 0x3c]
push str._s_s__u_02u_02u__02u_02u_02u.reg
push eax
call fcn.0041ccda
cmp dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push ecx
push eax
push esi
call fcn.004552fa
cmp dword [ebp - 0x24], ebx
lea eax, [ebp - 0x38]
push esi
cmovae eax, dword [ebp - 0x38]
push esi
push 1
push esi
push 3
push 0xc0000000
push eax
call fcn.005654e9
add esp, 0x50
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x468b99
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x468beb
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x468af5
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x44]
push esi
push ecx
push 2
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], esi
push ecx
push eax
mov word [ebp - 0x40], 0xfeff
call ebx
test eax, eax
je 0x468beb
push str.Windows_Registry_Editor_Version_5.00_r_n_r_n
lea ecx, [edi + 4]
call fcn.004179fb
mov eax, dword [edi + 0x18]
lea ecx, [edi + 8]
cmp dword [ecx + 0x14], 8
jb 0x468bd5
mov ecx, dword [ecx]
push esi
lea edx, [ebp - 0x44]
add eax, eax
push edx
push eax
push ecx
push dword [edi]
call ebx
test eax, eax
je 0x468beb
xor esi, esi
inc esi
jmp 0x468bf2
mov ecx, edi
call fcn.0046880b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041786a
jmp 0x468c03
xor esi, esi
inc esi
mov eax, esi
call fcn.0056e1e5
ret

Function at 0x468c0b
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x690f1b
call fcn.0056e23b
mov ebx, ecx
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [ebx], 0xffffffff
je 0x468c87
test edi, edi
je 0x468c87
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], esi
call fcn.004173bc
mov dword [ebp - 4], esi
lea eax, [ebp - 0x2c]
push edi
push str._r_n__s__r_n
push eax
call fcn.0041ccda
add esp, 0xc
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push esi
push eax
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
push ecx
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x468c78
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041786a
jmp 0x468c87
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041786a
xor esi, esi
inc esi
mov eax, esi
call fcn.0056e1e5
ret 4
Function at 0x46a6ee
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x40
mov eax, 0x68c78f
call fcn.0056e23b
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x34], edi
call fcn.004173bc
and dword [ebp - 4], 0
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
lea ecx, [ebp - 0x2c]
call fcn.0041cd99
and dword [esi], 0
mov ecx, ebx
push 0x6c1e90
call fcn.004179fb
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x20019
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00567b83
mov dword [ebp - 0x3c], eax
pop ecx
pop ecx
test eax, eax
je 0x46a85e
xor edx, edx
lea ecx, [ebp - 0x30]
push ecx
push edx
push esi
push edx
push edi
push eax
mov dword [ebp - 0x30], edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x46a853
cmp dword [ebp - 0x30], eax
je 0x46a853
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
push dword [ebp - 0x30]
call fcn.0041cd0c
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0x30]
push eax
push esi
push edi
push edi
push dword [ebp - 0x34]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
jne 0x46a847
mov eax, dword [ebp - 0x44]
cmp esi, eax
je 0x46a847
mov ecx, dword [ebp - 0x38]
cmp dword [ecx], 1
je 0x46a83f
cmp dword [ecx], 2
je 0x46a83f
cmp dword [ecx], 3
jne 0x46a826
xor ebx, ebx
sub eax, esi
mov dword [ebp - 0x38], eax
je 0x46a847
mov edi, dword [ebp - 0x4c]
cmp dword [edi + 0x14], 0
movzx eax, byte [esi + ebx]
push eax
lea eax, [ebp - 0x2c]
jne 0x46a7f9
push 0x6c1e94
jmp 0x46a7fe
push str.__02X
push eax
call fcn.0041ccda
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [edi + 4]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0041caaf
inc ebx
cmp ebx, dword [ebp - 0x38]
jb 0x46a7e4
mov edi, dword [ebp - 0x34]
jmp 0x46a847
cmp dword [ecx], 4
jne 0x46a847
push dword [esi]
push dword [esi]
push str._08X___u_
push ebx
call fcn.0041ccda
add esp, 0x10
jmp 0x46a847
push esi
mov ecx, ebx
call fcn.004179fb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0041c8bf
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46a866
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041786a
mov eax, edi
call fcn.0056e1e5
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46abca
test al, 0x10
jne 0x46abca
xor eax, eax
inc eax
jmp 0x46abcc
xor eax, eax
pop ebp
ret 4