joyce8/EMBER2024-capa huggingface dataset:
Function at 0x105e205
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
push edi
inc eax
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x620]
push eax
xor ecx, ecx
mov edi, 0x101
push edi
push ecx
push 0x100bcf8
mov ebx, 0x80000002
push ebx
mov dword [ebp - 0x620], ecx
mov dword [ebp - 0x630], ecx
mov dword [ebp - 0x628], ecx
call esi
test eax, eax
je 0x105e28d
lea eax, [ebp - 0x620]
push eax
push edi
xor edi, edi
push edi
push 0x100bc78
push ebx
mov dword [ebp - 0x62c], 2
call esi
test eax, eax
je 0x105e28f
xor eax, eax
jmp 0x105e435
xor edi, edi
push 0x100bc50
push 4
call fcn.01055c2f
cmp dword [ebp - 0x620], edi
je 0x105e36a
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x624]
push eax
push edi
push 0x100a668
push dword [ebp - 0x620]
mov esi, 0x208
mov dword [ebp - 0x630], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105e354
cmp dword [ebp - 0x624], 2
je 0x105e2ef
cmp dword [ebp - 0x624], 1
jne 0x105e354
cmp dword [ebp - 0x624], 2
mov dword [ebp - 0x628], 1
jne 0x105e354
push 0x104
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x105e337
lea eax, [ebp - 0x61c]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0103584b
test eax, eax
jge 0x105e354
push 0x100bc18
push 4
call fcn.01055c2f
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x105e286
push dword [ebp - 0x620]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [ebp - 0x628], edi
jne 0x105e37b
push 0x100bc18
push 4
call fcn.01055c2f
jmp 0x105e286
push edi
lea eax, [ebp - 0x620]
push eax
push edi
push 0x20106
push edi
push edi
push edi
push 0x1001c88
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x105e3c1
push 4
lea eax, [ebp - 0x62c]
push eax
push 4
push edi
push 0x100b2e4
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x620]
call esi
cmp dword [ebp - 0x62c], 2
jne 0x105e3cf
call fcn.0105dfc5
mov esi, dword [sym.imp.msvcrt.dll_wcsstr]
lea eax, [ebp - 0x20c]
push 0x100bc00
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x105e42f
lea eax, [ebp - 0x20c]
push 0x100bbfc
push eax
call esi
pop ecx
pop ecx
cmp eax, edi
je 0x105e42f
push eax
push 0x100bba8
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.01035948
add esp, 0x10
test eax, eax
jl 0x105e42f
push 0xffff
push 1
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.01059819
mov eax, dword [ebp - 0x628]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret
Function at 0x105e962
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push 0x1001b38
push 0x80000001
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x105e9cf
push esi
push 4
pop esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x100beb4
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105e9c5
cmp dword [ebp - 8], esi
jne 0x105e9c5
cmp dword [ebp - 0xc], 1
sete al
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
leave
ret
Function at 0x10608a3
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x21c], edi
test eax, eax
je 0x1060af8
test edi, edi
je 0x1060af8
mov esi, dword [sym.imp.msvcrt.dll_wcsrchr]
xor ecx, ecx
push 0x5c
push edi
mov word [eax], cx
call esi
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x10608f9
mov ebx, edi
jmp 0x10608fb
inc ebx
inc ebx
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1060936
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1060921
push 0x57
pop eax
test eax, eax
jle 0x1060afd
and eax, 0xffff
or eax, 0x80070000
jmp 0x1060afd
push 0x100cd28
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035886
push ebx
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035886
lea eax, [ebp - 0x20c]
push eax
call fcn.010561ca
xor edi, edi
test eax, eax
je 0x1060aba
push 4
pop eax
push dword [ebp - 0x21c]
mov dword [ebp - 0x218], edi
push 0x100cce0
push eax
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
call fcn.01055c69
add esp, 0xc
push edi
lea eax, [ebp - 0x218]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x100cc70
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1060a26
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push ebx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1060a01
cmp dword [ebp - 0x220], 4
jne 0x1060a01
cmp dword [ebp - 0x214], 1
setne al
mov dword [ebp - 0x214], eax
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push edi
push ebx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], edi
je 0x1060aba
cmp ebx, edi
je 0x1060adf
cmp dword [ebp + 0x10], edi
je 0x1060a95
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call esi
pop ecx
pop ecx
cmp eax, edi
je 0x1060ae4
push 0x5c
push dword [ebp - 0x21c]
xor ecx, ecx
mov word [eax], cx
call esi
pop ecx
pop ecx
cmp eax, edi
jne 0x1060a71
mov eax, dword [ebp - 0x21c]
jmp 0x1060a73
inc eax
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x100cc58
push 0x103
push dword [ebp - 0x210]
call fcn.01035948
add esp, 0x14
jmp 0x1060ae4
push 0x100cc50
mov esi, 0x103
push esi
push dword [ebp - 0x210]
call fcn.01035811
push ebx
push esi
push dword [ebp - 0x210]
call fcn.01035886
jmp 0x1060ae4
cmp ebx, edi
je 0x1060adf
cmp dword [ebp + 0x10], edi
je 0x1060acc
lea eax, [ebp - 0x20c]
push eax
jmp 0x1060acd
push ebx
push 0x103
push dword [ebp - 0x210]
call fcn.01035811
jmp 0x1060ae4
mov edi, 0x80004005
push edi
push 0x100cc20
push 4
call fcn.01055c69
add esp, 0xc
mov eax, edi
jmp 0x1060afd
mov eax, 0x8007000e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret 0xc
Function at 0x1061287
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.010607b0
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], esi
cmp dword [ebp - 0x14], esi
je 0x106136f
cmp dword [ebp - 8], esi
je 0x106136f
lea eax, [ebp + 0xc]
push eax
push 3
push esi
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106136f
lea eax, [ebp + 0x14]
push eax
push ebx
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp + 8], 1
push dword [ebp + 0xc]
mov dword [ebp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1061320
inc eax
cmp dword [ebp + 8], eax
jne 0x1061320
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], esi
je 0x106136f
test byte [ebp + 0x18], 0x40
je 0x1061348
push 0x3b
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
cmp eax, esi
je 0x1061348
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp + 0x18]
xor eax, 0xf
je 0x106139c
push ebx
call fcn.010587c1
test eax, eax
je 0x106136f
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106135f
sub eax, edx
sar eax, 1
jne 0x106139c
cmp dword [ebp - 0xc], esi
je 0x106139c
push dword [ebp - 0xc]
shr edi, 1
push edi
push ebx
call fcn.01035811
mov eax, dword [ebp + 0x18]
or eax, 0xf
jne 0x1061395
push ebx
call fcn.010587c1
mov dword [ebp - 4], esi
test eax, eax
je 0x106139c
mov dword [ebp - 4], 1
test byte [ebp + 0x18], 0x20
je 0x10613ad
xor eax, eax
cmp dword [ebp - 4], esi
sete al
mov dword [ebp - 4], eax
cmp dword [ebp - 8], esi
je 0x10613bb
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x10], esi
je 0x10613c9
push dword [ebp - 0x10]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0xc], esi
pop edi
pop esi
pop ebx
je 0x10613da
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, dword [ebp - 4]
leave
ret 0x14
Function at 0x10625d5
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
xor ecx, ecx
inc ecx
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 8], ecx
je 0x1062701
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x10625f9
mov eax, 0x100c900
push ecx
push 0x100ca8c
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push 0
call fcn.01060bed
test eax, eax
je 0x1062701
and dword [ebp - 8], 0
push 0x26d7
call fcn.01055281
lea eax, [ebp - 0x1c]
push eax
call fcn.0106056f
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1062701
push ebx
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcstok]
mov ebx, 0x1007d6c
push ebx
push eax
jmp 0x10626e7
push esi
push 0x100d500
push 4
call fcn.01055c69
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push 0
push esi
push dword [ebp + 8]
call fcn.0105c68e
test eax, eax
je 0x10626e4
push esi
push dword [ebp + 8]
mov dword [ebp + 0xc], 1
call fcn.0105c555
push eax
mov dword [ebp - 4], eax
call fcn.0105506e
cmp dword [ebp - 4], 1
jb 0x10626e4
push dword [ebp + 0xc]
call fcn.0105520b
inc dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.0106056f
mov esi, eax
test esi, esi
je 0x10626cd
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call fcn.010587c1
push esi
push 0x100d4e0
push 4
call fcn.01055c69
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x10626e4
mov eax, dword [ebp - 4]
cmp dword [ebp + 0xc], eax
jbe 0x1062690
push ebx
push 0
call edi
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x106264e
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 8]
leave
ret 8
Function at 0x1064616
Capabilities:
Create directory
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x210], 0
push esi
mov dword [ebp - 0x21c], eax
mov esi, 0x80004005
test eax, eax
jne 0x106464d
lea eax, [esi - 2]
jmp 0x1064760
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push 0x10095f8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106475e
push ebx
mov ebx, dword [ebp + 0xc]
mov esi, 0x208
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], 1
cmp ebx, esi
jbe 0x1064693
mov dword [ebp - 0x218], esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x100daa4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10646fb
cmp dword [ebp - 0x214], 1
jne 0x10646fb
lea eax, [ebp - 0x20c]
push eax
call fcn.010587c1
test eax, eax
je 0x10646dc
xor esi, esi
jmp 0x106470e
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call fcn.010587c1
test eax, eax
jne 0x10646d8
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01064391
mov esi, eax
test esi, esi
jne 0x1064751
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1064717
sub eax, edx
sar eax, 1
mov ecx, ebx
shr ecx, 1
inc eax
cmp ecx, eax
jbe 0x1064743
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x21c]
call fcn.01035811
jmp 0x1064751
mov eax, 0x8007007a
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret 8
Function at 0x1064774
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x214], 0
push ebx
push esi
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x214]
push eax
push 0x23
xor esi, esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ebx, eax
test ebx, ebx
jl 0x1064808
and dword [ebp - 0x210], esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10647d1
inc esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x1064804
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x1064804
push dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jne 0x106483a
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1064835
push 0x100dac4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035886
test eax, eax
jge 0x106483a
mov ebx, 0x80070057
test ebx, ebx
jl 0x10648b2
lea eax, [ebp - 0x20c]
push eax
call fcn.010587c1
test eax, eax
je 0x1064852
xor ebx, ebx
jmp 0x1064877
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call fcn.010587c1
test eax, eax
je 0x1064873
xor ebx, ebx
test ebx, ebx
jne 0x10648b2
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1064880
mov ecx, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
shr ecx, 1
inc eax
cmp ecx, eax
jbe 0x10648ad
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x218]
call fcn.01035811
jmp 0x10648b2
mov ebx, 0x8007007a
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret 8
Function at 0x106529a
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x10652c4
cmp dword [ebp + 0xc], 0
je 0x10652c4
push dword [ebp + 8]
call fcn.01064f6e
test eax, eax
je 0x10652be
mov eax, 0x80004001
jmp 0x10652c9
pop ebp
jmp fcn.01064fb1
mov eax, 0x80004003
pop ebp
ret 8
Function at 0x1065979
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x250], 1
cmp eax, esi
je 0x1065a7f
cmp ecx, esi
je 0x1065a7f
push ecx
push eax
push 0x100dde8
lea eax, [ebp - 0x248]
push 0x121
push eax
call fcn.0103590d
add esp, 0x14
lea eax, [ebp - 0x24c]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x248]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1065a9c
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x250]
push eax
push esi
push esi
push dword [ebp - 0x24c]
mov dword [ebp - 0x254], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1065a90
cmp dword [ebp - 0x250], 1
je 0x1065a42
cmp dword [ebp - 0x250], 2
jne 0x1065a90
lea eax, [ebp - 0x248]
push eax
call fcn.010653d5
test eax, eax
je 0x1065a90
lea eax, [ebp - 0x248]
xor esi, esi
push eax
inc esi
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x248]
push eax
call fcn.010653f8
test eax, eax
jne 0x1065a90
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret 8
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1065a81
Function at 0x1065ac0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x118], 1
cmp eax, ebx
jne 0x1065afc
xor eax, eax
jmp 0x1065c0e
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea ecx, [ebp - 0x110]
push ecx
mov edi, 0x20019
push edi
push ebx
push eax
push 0x80000000
call esi
test eax, eax
jne 0x1065c06
lea eax, [ebp - 0x108]
push eax
push edi
push ebx
push 0x100dce4
push dword [ebp - 0x110]
mov dword [ebp - 0x108], ebx
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1065bfe
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push dword [ebp - 0x108]
xor edi, edi
inc edi
mov dword [ebp - 0x10c], 0x100
mov dword [ebp - 0x114], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1065b9e
cmp dword [ebp - 0x114], edi
jne 0x1065b9e
lea eax, [ebp - 0x104]
push eax
call fcn.010653d5
test eax, eax
jne 0x1065bde
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push ebx
push dword [ebp - 0x108]
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1065bde
push 0x100b2d8
push 0x7f
lea eax, [ebp - 0x104]
push eax
call fcn.01035811
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x11c]
call fcn.01065979
push dword [ebp - 0x108]
mov dword [ebp - 0x118], eax
call esi
push dword [ebp - 0x110]
call esi
mov eax, dword [ebp - 0x118]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret 4
Function at 0x1065d81
Capabilities:
Reference http user-agent string

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.010474e0
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0xfe8]
mov dword [ebp - 0xfdc], esi
mov dword [ebp - 0xff8], 0xfd0
call fcn.0106d68a
lea ecx, [ebp - 0x1004]
call fcn.0106d68a
push 0x64
lea ecx, [ebp - 0x1004]
call fcn.0106de14
mov dword [ebp - 0xfd8], eax
test eax, eax
jl 0x1065df0
push 0x64
push dword [ebp - 0x1004]
call fcn.01065d15
mov dword [ebp - 0xfd8], eax
lea eax, [ebp - 0xff8]
push eax
lea eax, [ebp - 0xfd4]
push eax
push 0
call sub.urlmon.dll_ObtainUserAgentString
test eax, eax
jl 0x1065fa9
mov eax, dword [ebp - 0xff8]
mov byte [ebp + eax - 0xfd5], 0
or ebx, 0xffffffff
push ebx
lea eax, [ebp - 0xfd4]
push eax
lea ecx, [ebp - 0xfe8]
call fcn.0106dee3
mov edi, eax
test edi, edi
jl 0x1065ee9
cmp dword [ebp - 0xfd8], 0
jl 0x1065ee9
push 0x29
lea ecx, [ebp - 0xfe8]
call fcn.0106d887
mov esi, eax
test esi, esi
jl 0x1065ee9
lea ecx, [ebp - 0xff4]
mov edi, 0x8007000e
call fcn.0106d68a
mov eax, dword [ebp - 0xfe8]
add esi, esi
push ebx
add eax, esi
push eax
lea ecx, [ebp - 0xff4]
call fcn.0106de5c
cmp dword [ebp - 0xff4], 0
je 0x1065ede
mov ecx, dword [ebp - 0xfe8]
xor eax, eax
push ebx
mov word [esi + ecx], ax
push 0x100df74
lea ecx, [ebp - 0xfe8]
call fcn.0106e031
mov edi, eax
test edi, edi
jl 0x1065ede
push ebx
push dword [ebp - 0x1004]
lea ecx, [ebp - 0xfe8]
call fcn.0106e031
mov edi, eax
test edi, edi
jl 0x1065ede
push ebx
push dword [ebp - 0xff4]
lea ecx, [ebp - 0xfe8]
call fcn.0106e031
mov edi, eax
lea ecx, [ebp - 0xff4]
call fcn.0106de0a
xor eax, eax
test edi, edi
setge al
xor ecx, ecx
cmp dword [ebp - 0xfd8], ecx
setge cl
test ecx, eax
je 0x1065f43
mov edi, dword [ebp + 0xc]
test edi, edi
jbe 0x1065fd1
lea ecx, [ebp - 0xfe8]
call fcn.0106d755
cmp eax, edi
jae 0x1065fd1
push edi
push dword [ebp - 0xfdc]
lea ecx, [ebp - 0xfe8]
call fcn.0106dcd3
mov ecx, dword [ebp - 0xfdc]
mov esi, eax
xor eax, eax
mov word [ecx + edi*2 - 2], ax
jmp 0x1065fde
lea ecx, [ebp - 0xff4]
call fcn.0106d68a
push ebx
lea eax, [ebp - 0xfd4]
push eax
lea ecx, [ebp - 0xff4]
call fcn.0106dee3
mov esi, eax
test esi, esi
jl 0x1065f9c
lea ecx, [ebp - 0xff4]
call fcn.0106d755
mov edi, dword [ebp + 0xc]
cmp eax, edi
jae 0x1065f97
mov ebx, dword [ebp - 0xfdc]
push edi
push ebx
lea ecx, [ebp - 0xff4]
call fcn.0106dcd3
mov esi, eax
xor eax, eax
mov word [ebx + edi*2 - 2], ax
jmp 0x1065f9c
mov esi, 0xc00d107f
lea ecx, [ebp - 0xff4]
call fcn.0106de0a
jmp 0x1065fde
cmp dword [ebp - 0xfd8], 0
jl 0x1065fd8
lea ecx, [ebp - 0x1004]
call fcn.0106d755
mov edi, dword [ebp + 0xc]
cmp eax, edi
jae 0x1065fd1
push edi
push esi
lea ecx, [ebp - 0x1004]
jmp 0x1065f2a
mov esi, 0xc00d107f
jmp 0x1065fde
mov esi, dword [ebp - 0xfd8]
lea ecx, [ebp - 0x1004]
call fcn.0106de0a
lea ecx, [ebp - 0xfe8]
call fcn.0106de0a
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret 8