joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4479e2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x114], 0x114
and dword [eax], 0
lea eax, [ebp - 0x114]
and dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 1
jne 0x447a5d
cmp dword [ebp - 0x10c], 0
je 0x447a55
cmp dword [ebp - 0x10c], 0xa
je 0x447a40
cmp dword [ebp - 0x10c], 0x5a
je 0x447a49
xor al, al
mov dword [esi], 0x80
jmp 0x447ac1
call fcn.00447d9a
test al, al
je 0x447a4d
mov al, 1
jmp 0x447a35
mov dword [esi], 0x40
jmp 0x447aab
mov dword [esi], 0x10
jmp 0x447aab
cmp dword [ebp - 0x104], 2
jne 0x447abf
mov eax, dword [ebp - 0x110]
sub eax, 4
je 0x447ab7
mov ecx, dword [ebp - 0x10c]
dec eax
je 0x447a87
dec eax
je 0x447aaf
xor al, al
mov dword [esi], 0x1000000
jmp 0x447ac1
test ecx, ecx
jne 0x447a93
mov dword [esi], 0x100000
jmp 0x447aab
cmp ecx, 1
jne 0x447aa0
mov dword [esi], 0x400000
jmp 0x447aab
cmp ecx, 2
jne 0x447aaf
mov dword [esi], 0x800000
mov al, 1
jmp 0x447ac1
test ecx, ecx
jne 0x447a7d
mov al, 1
jmp 0x447a7f
mov dword [esi], 0x10000
jmp 0x447aab
xor al, al
pop esi
leave
ret

Function at 0x447eb3
Capabilities:
Get common file path

Disassembly:
mov eax, 0x468ad7
call fcn.0043540c
sub esp, 0x260
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
push 1
mov esi, 0x104
pop ebx
cmp dword [ebp + 0xc], ebx
jne 0x447f5e
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x447f5e
push str.GetSystemWindowsDirectoryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x484e40], eax
je 0x447f5e
lea ecx, [ebp - 0x26c]
push esi
push ecx
call eax
test eax, eax
je 0x447f5e
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x26c]
mov edi, 0x46db58
mov esi, 0x46db50
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.00403d1a
push 0x47ef3c
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.00447ff0
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403c87
mov dword [ebp - 0x14], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
jmp 0x447fd9
lea eax, [ebp - 0x26c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x447f86
lea ecx, [ebp - 0x30]
call fcn.004460c4
lea eax, [ebp - 0x30]
push 0x477e38
push eax
call fcn.0043663c
lea eax, [ebp - 0xd]
push 0
push eax
lea eax, [ebp - 0x26c]
mov edi, 0x46db58
mov esi, 0x46db50
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
call fcn.00403d1a
push 0x47ef3c
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 2
call fcn.00447ff0
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403c87
and byte [ebp - 4], 0
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x3c]
call fcn.00402079
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x449380
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x468d07
call fcn.0043540c
sub esp, 0x48
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0xd]
push ebx
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 3
mov dword [ebp - 0x54], 0x46b5c0
mov dword [ebp - 0x34], 0x46b5b8
call fcn.00402b02
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 5
cmp eax, ebx
jne 0x4493c9
mov eax, 0x46b5e8
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push ecx
push 0x20019
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4493f2
lea ecx, [ebp - 0x14]
call fcn.0040d420
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
push edi
cmp eax, ebx
mov edi, eax
jne 0x44946e
mov eax, dword [ebp + 0x40]
cmp eax, ebx
jne 0x449405
mov eax, 0x46b5e8
lea ecx, [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
lea ecx, [ebp - 0x20]
push ebx
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call esi
mov edi, eax
cmp edi, ebx
jne 0x44946e
mov edi, dword [ebp + 0x40]
cmp edi, ebx
jne 0x44942d
mov edi, 0x46b5e8
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x54]
push eax
call fcn.004024ea
mov ecx, dword [eax]
mov byte [ebp - 4], 6
mov byte [eax + 4], 1
call fcn.00402b77
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push edi
push dword [ebp - 0x14]
call esi
lea ecx, [ebp - 0x2c]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.004025fc
mov dword [0x48bcbc], edi
cmp edi, ebx
pop edi
lea eax, [ebp - 0x54]
je 0x44947f
lea eax, [ebp + 0x60]
mov esi, dword [ebp + 8]
push ebx
push eax
mov ecx, esi
mov dword [esi], 0x46b5c0
mov dword [esi + 0x20], 0x46b5b8
call fcn.00403c87
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x14], ebx
je 0x4494b0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.00402079
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.00402079
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.00402079
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], bl
call fcn.00402079
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x449c44
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x449c6c
xor al, al
leave
ret
cmp dword [ebp - 0x104], 2
jne 0x449c83
cmp dword [ebp - 0x110], 5
jb 0x449c83
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x44ba08
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x44ba4d
mov eax, dword [ebp + 8]
test eax, eax
je 0x44ba22
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44baa9
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0044b902
lea eax, [ebp - 0x4c]
push 0x4789e8
push eax
call fcn.0043663c
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44baa9
cmp dword [ebp + 8], 0
jne 0x44ba82
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00446058
lea eax, [ebp - 0x48]
push 0x477848
push eax
call fcn.0043663c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x44baa9
push 1
add esi, 0xc
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0044b83b
lea eax, [ebp - 0x48]
push 0x477848
push eax
call fcn.0043663c
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x44e526
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x44e53a
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44e56e
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0045175c
test al, al
jne 0x44e5a1
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0044b902
lea eax, [ebp - 0x4c]
push 0x4789e8
push eax
call fcn.0043663c
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44e5a1
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00446058
lea eax, [ebp - 0x48]
push 0x477848
push eax
call fcn.0043663c
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x44e5a9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x44e5bf
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44e5f4
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00446058
lea eax, [ebp - 0x48]
push 0x477848
push eax
call fcn.0043663c
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x44e5fc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x44e610
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44e644
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0045175c
test al, al
jne 0x44e677
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0044b902
lea eax, [ebp - 0x4c]
push 0x4789e8
push eax
call fcn.0043663c
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44e677
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00446058
lea eax, [ebp - 0x48]
push 0x477848
push eax
call fcn.0043663c
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x44e67f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x44e695
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44e6ca
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00446058
lea eax, [ebp - 0x48]
push 0x477848
push eax
call fcn.0043663c
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x44e6d2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x44e6e8
mov eax, 0x1ed
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44e71c
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0045175c
test al, al
jne 0x44e74f
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0044b902
lea eax, [ebp - 0x4c]
push 0x4789e8
push eax
call fcn.0043663c
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44e74f
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00446058
lea eax, [ebp - 0x48]
push 0x477848
push eax
call fcn.0043663c
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x44e757
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x44e76d
mov eax, 0x28e
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44e7a1
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0045175c
test al, al
jne 0x44e7d4
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0044b902
lea eax, [ebp - 0x4c]
push 0x4789e8
push eax
call fcn.0043663c
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44e7d4
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00446058
lea eax, [ebp - 0x48]
push 0x477848
push eax
call fcn.0043663c
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x44e7dc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x44e7ef
xor eax, eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44e823
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0045175c
test al, al
jne 0x44e856
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0044b902
lea eax, [ebp - 0x4c]
push 0x4789e8
push eax
call fcn.0043663c
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44e856
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00446058
lea eax, [ebp - 0x48]
push 0x477848
push eax
call fcn.0043663c
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x44f699
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [ecx + 8]
test eax, eax
jne 0x44f6a5
mov eax, 0x46b5e8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x44fb44
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4699b3
call fcn.0043540c
sub esp, 0x138
and byte [ebp - 0x144], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x143]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x10]
pop ebx
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x44fc21
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], 0x104
mov eax, str.CommonFilesDir
je 0x44fbae
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push esi
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x46db58
mov esi, 0x46db50
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.0041279b
push 0x47ef3c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00447ff0
lea ecx, [ebp - 0x40]
call fcn.0044f789
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403c87
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
jmp 0x44fc70
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x46db58
mov esi, 0x46db50
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.0041279b
push 0x47ef3c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00447ff0
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403c87
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.00402079
cmp dword [ebp - 0x10], 0
je 0x44fc89
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x44fc89
push dword [ebp - 0x10]
call eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x450837
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x45084d
mov dword [ebp + 0xc], 4
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x450882
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00446058
lea eax, [ebp - 0x48]
push 0x477848
push eax
call fcn.0043663c
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x45088a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x4508a0
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4508d5
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00446058
lea eax, [ebp - 0x48]
push 0x477848
push eax
call fcn.0043663c
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x4508dd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x4508f1
push 4
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x450925
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0045175c
test al, al
jne 0x450958
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0044b902
lea eax, [ebp - 0x4c]
push 0x4789e8
push eax
call fcn.0043663c
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x450958
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00446058
lea eax, [ebp - 0x48]
push 0x477848
push eax
call fcn.0043663c
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x451214
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push edi
mov edi, ecx
call fcn.0040b20c
xor ebx, ebx
cmp eax, 1
jne 0x4512b1
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x45129e
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x451275
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x830]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x45129e
mov byte [ebp - 0x830], bl
cmp dword [ebp - 4], ebx
je 0x4512b1
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x4512b1
push dword [ebp - 4]
call eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00450cf0
add esp, 0x14
xor ecx, ecx
cmp eax, ebx
mov dword [edi + 4], eax
setne cl
pop edi
mov al, cl
pop ebx
leave
ret 0x14
Function at 0x4519fc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x451a34
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov edi, dword [esi + 0x64]
test edi, edi
jne 0x451a40
mov eax, dword [esi + 0x5c]
jmp 0x451a89
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x451a87
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x451a65
shr ebx, 1
shr edi, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x451a49
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x451f7e
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 8]
mov esi, ecx
push eax
push 0x20000013
push dword [esi + 4]
mov dword [ebp - 4], 4
call fcn.00450ecc
add esp, 0x14
test eax, eax
je 0x451fbc
mov eax, dword [ebp - 8]
cmp eax, 0xc8
jb 0x451fc0
cmp eax, 0x12c
jae 0x451fc0
mov al, 1
jmp 0x451fd6
add eax, 0xd3c0
or eax, 0x80040000
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
leave
ret

Function at 0x452fea
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [ebp - 4], eax
je 0x45303c
push eax
call fcn.00435520
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x45303c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x47ef3c
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x453040
xor al, al
jmp 0x4530a1
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
pop edi
pop esi
test eax, eax
je 0x45309f
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.00435520
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x45309f
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x45308d
mov al, 1
pop ebx
leave
ret 4
Function at 0x456d1c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x456dee
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.00435520
pop ecx
mov dword [ebp - 4], eax
lea ecx, [ebp + 8]
push 0
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp + 8]
jne 0x456dee
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x30]
lea ecx, [esi + 0x28]
push dword [ecx + 4]
call fcn.00457551
push dword [esi + 0x20]
lea ecx, [esi + 0x18]
push dword [ecx + 4]
call fcn.004574fb
mov edi, 0x48661c
push edi
call fcn.00435870
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00434c2d
mov edi, dword [ebp - 4]
mov ecx, esi
and byte [edi + ebx], 0
mov dword [esi + 0x38], edi
call fcn.00456840
push eax
push 0
mov ecx, esi
call fcn.004569b5
test eax, eax
je 0x456dee
mov ecx, esi
call fcn.00456840
push eax
push 9
mov ecx, esi
call fcn.004569b5
test eax, eax
je 0x456dee
push esi
mov ecx, esi
call fcn.00456c90
test eax, eax
jne 0x456df2
xor eax, eax
jmp 0x456dfc
push edi
call fcn.004347fc
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x456f21
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x46a370
call fcn.0043540c
sub esp, 0x5c
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x18], ecx
mov esi, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
cmp esi, eax
je 0x457012
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x14], edi
mov eax, dword [esi + 4]
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x456f59
mov eax, 0x46cc7c
lea ecx, [ebp - 0xd]
push 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00401a72
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, edi
jne 0x456f78
mov eax, 0x46b598
mov ecx, dword [ebp + 0xc]
push 0xf003f
push eax
mov ecx, dword [ecx]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004139af
test eax, eax
setne bl
and byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00401306
test bl, bl
jne 0x456fef
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00456f21
cmp dword [esi + 0x14], edi
jne 0x456fef
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x456fbf
mov eax, 0x46cc7c
lea ecx, [ebp - 0xe]
push 1
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.00401a72
mov eax, dword [eax + 8]
cmp eax, edi
jne 0x456fda
mov eax, 0x46b598
mov ecx, dword [ebp + 0xc]
push eax
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x68]
call fcn.00401306
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], edi
je 0x457001
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add esi, 0x38
cmp esi, dword [eax + 0x30]
jne 0x456f45
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop esi
mov dword fs:[0], ecx
leave
ret 8