joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102fe6a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
test eax, eax
je 0x102fec8
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01027e68
test eax, eax
jl 0x102fec8
push 0x5c
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e6ef
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102fec6
test al, 0x10
je 0x102fec6
inc esi
jmp 0x102fec8
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0102df7d
leave
ret 4

Function at 0x102fede
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102feec
push ebx
sub eax, edx
sar eax, 1
push esi
lea ebx, [eax + 0x14]
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
pop ecx
test esi, esi
je 0x102ffe8
push edi
push dword [ebp + 8]
push ebx
push esi
call fcn.01027e68
mov edi, dword [sym.imp.msvcrt.dll_wcsstr]
push 0x1005894
push esi
call edi
pop ecx
pop ecx
test eax, eax
je 0x102ffe0
add eax, 4
and dword [ebp - 4], 0
jmp 0x102ff4f
mov eax, dword [ebp - 0xc]
push 0x1004e20
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x102ffd7
xor ecx, ecx
mov word [eax], cx
add eax, 2
push esi
mov dword [ebp - 0xc], eax
call fcn.0102fe6a
test eax, eax
jne 0x102ffaf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x102ff89
push 0x57
pop eax
test eax, eax
jle 0x102ff95
and eax, 0xffff
or eax, 0x80070000
push esi
mov dword [ebp - 8], eax
call fcn.0102fe6a
test eax, eax
je 0x102ffc4
push 0
push esi
push 5
push 8
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push dword [ebp + 8]
push ebx
push esi
call fcn.01027e68
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x102ff4c
jmp 0x102ffd7
push dword [ebp - 8]
push esi
push 0x1005858
push 2
call fcn.01039f55
add esp, 0x10
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
push dword [ebp + 8]
call fcn.0102fe6a
pop esi
pop ebx
leave
ret 4
Function at 0x102fffb
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x320]
push eax
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x320], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1030172
cmp dword [ebp - 0x310], 2
jne 0x1030170
mov eax, dword [ebp - 0x31c]
cmp eax, dword [ebp + 8]
je 0x103005b
jbe 0x1030170
xor esi, esi
inc esi
jmp 0x1030170
mov eax, dword [ebp - 0x318]
cmp eax, dword [ebp + 0xc]
jne 0x103004d
xor esi, esi
push edi
mov edi, dword [ebp + 0x10]
inc esi
cmp edi, ebx
jbe 0x103016f
lea eax, [ebp - 0x32c]
push eax
push esi
push ebx
push 0x10054f0
push 0x80000002
mov dword [ebp - 0x32c], ebx
mov dword [ebp - 0x328], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103010c
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x324]
push eax
push ebx
push 0x10054c4
push dword [ebp - 0x32c]
mov dword [ebp - 0x324], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10300f4
cmp dword [ebp - 0x324], esi
jne 0x10300f4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
cmp eax, edi
sbb esi, esi
pop ecx
mov dword [ebp - 0x328], eax
inc esi
push dword [ebp - 0x32c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x328], edi
ja 0x103016f
cmp esi, ebx
je 0x103016f
cmp dword [ebp + 0x14], ebx
je 0x103016f
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x103016f
push 0x100589c
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01027edd
test eax, eax
jl 0x103016f
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x324], ebx
call fcn.0102ec42
test eax, eax
jl 0x103016f
movzx eax, word [ebp - 0x324]
cmp eax, dword [ebp + 0x14]
sbb esi, esi
inc esi
pop edi
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0102df7d
leave
ret 0x10
Function at 0x10306d8
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
jne 0x10306f4
mov eax, 0x80004003
jmp 0x10308ba
push 0x14
pop eax
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x103071d
mov eax, 0x8007000e
jmp 0x10308ba
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 2
push esi
push 0x1005ab8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10307a1
push 0x208
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x1030798
mov edi, 0x104
push edi
push ebx
call fcn.0102fc69
test eax, eax
je 0x1030791
push 0x1005aa4
push edi
push ebx
call fcn.01027edd
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x103076c
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push esi
push 0x1005a84
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 4]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x10022c8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x103085e
push dword [0x10411b8]
mov ebx, 0x1005850
push ebx
push 0x14
push dword [ebp - 8]
call fcn.01027f64
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x1030807
cmp dword [0x10411b8], 0x3e8
jge 0x103081a
inc dword [0x10411b8]
push dword [0x10411b8]
push ebx
push 0x14
push dword [ebp - 8]
call fcn.01027f64
add esp, 0x10
push esi
push esi
push esi
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call edi
test eax, eax
je 0x10307e4
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1030820
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 2
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp edi, esi
jne 0x1030851
inc dword [0x10411b8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x1030881
jle 0x103086c
and edi, 0xffff
or edi, 0x80070000
push edi
push dword [ebp + 8]
push 0x1005a44
push 2
call fcn.01039f55
add esp, 0x10
jmp 0x10308ad
push dword [ebp + 8]
push 0x1005a08
push 4
call fcn.01039f55
add esp, 0xc
cmp dword [ebp + 0x10], esi
je 0x10308a8
push esi
push dword [ebp + 8]
mov ecx, 0x10411c0
push 8
call fcn.01030187
mov edi, 0xd2af9
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x1030e41
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1030f15
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1030f04
push edi
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01027e68
push 0x1005cd0
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01027edd
lea eax, [ebp - 0x414]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x1030f04
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01027edd
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e8b9
test eax, eax
je 0x1030f04
xor esi, esi
inc esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0102f1be
test eax, eax
jne 0x1030f04
push eax
push eax
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.01030a20
push edi
push 0x1005cac
push 4
call fcn.01039f55
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0102df7d
leave
ret 4

Function at 0x103133c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
push 1
xor esi, esi
push esi
push 0x10023f8
push 0x80000002
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10313b5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x10023dc
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], 3
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10313ac
cmp dword [ebp - 4], 4
je 0x10313a1
cmp dword [ebp - 4], 3
jne 0x10313ac
xor eax, eax
cmp dword [ebp - 0xc], 1
setne al
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x1031413
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
or eax, 0xffffffff
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 0x1006328
mov dword [ebp - 4], ebx
call sub.slc.dll_SLGetWindowsInformationDWORD
lea eax, [ebp - 0xc]
push eax
push 0x10062d8
call sub.slc.dll_SLGetWindowsInformationDWORD
lea eax, [ebp - 0x10]
push eax
push 0x1006280
call sub.slc.dll_SLGetWindowsInformationDWORD
lea eax, [ebp - 0x18]
push eax
push 0x1006230
call sub.slc.dll_SLGetWindowsInformationDWORD
lea eax, [ebp - 0x14]
push eax
push 0x10061d0
call sub.slc.dll_SLGetWindowsInformationDWORD
lea eax, [ebp - 0x1c]
push eax
push 0x1006180
call sub.slc.dll_SLGetWindowsInformationDWORD
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push 0x1001e58
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1031525
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
push 4
pop edi
push edi
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 0x1006170
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push 0x1006158
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push 0x1006134
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push 0x1006124
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push 0x100610c
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
push 0x10060e8
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
cmp dword [ebp - 8], ebx
je 0x103152f
cmp dword [ebp - 0xc], ebx
jne 0x1031543
cmp dword [ebp - 0x10], ebx
je 0x1031548
cmp dword [ebp - 0x14], ebx
je 0x1031548
cmp dword [ebp - 0x18], ebx
je 0x1031548
cmp dword [ebp - 0x1c], ebx
je 0x1031548
xor eax, eax
inc eax
jmp 0x103154a
xor eax, eax
pop ebx
leave
ret
Function at 0x1031d94
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x1031e1d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 0x2001f
push edi
push dword [ebp + 8]
push 0x80000000
call esi
test eax, eax
jne 0x1031e1c
lea eax, [ebp + 8]
push eax
push 0x20006
push edi
push 0x100651c
push dword [ebp - 4]
mov dword [ebp + 8], edi
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1031e17
cmp dword [ebp + 0xc], edi
je 0x1031e04
push 2
push 0x1002720
push 1
push edi
push 0x1006500
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1031e12
push 0x1006500
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 8]
call esi
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

Function at 0x1031e27
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
call fcn.01031413
test eax, eax
lea eax, [ebp - 4]
je 0x1031e75
push esi
push eax
push esi
push 2
push esi
push esi
push esi
push 0x1006568
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1031ea4
push 2
push 0x1002720
push 1
push esi
push 0x1006538
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1031e9b
push eax
push 3
push esi
push 0x1006568
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1031ea4
push 0x1006538
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x103626a
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
push 0x1007088
mov dword [ebp - 0x428], eax
mov edi, 0x103
xor esi, esi
lea eax, [ebp - 0x20c]
push edi
push eax
mov dword [ebp - 0x41c], esi
mov byte [ebp - 0x415], 0
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x420], esi
call fcn.01027f64
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x10
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x80000000
push esi
call ebx
test eax, eax
jne 0x1036395
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0x1007068
push dword [ebp - 0x41c]
mov dword [ebp - 0x424], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1036349
cmp dword [ebp - 0x420], 1
jne 0x1036349
lea eax, [ebp - 0x414]
push eax
push 0x1007018
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1036349
mov byte [ebp - 0x415], 1
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x415], 0
je 0x1036395
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x428]
lea eax, [ebp - 0x20c]
push 0x1006ff4
push edi
push eax
call fcn.01027f64
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x428]
lea eax, [ebp - 0x20c]
push 0x1006fc8
push edi
push eax
call fcn.01027f64
add esp, 0x10
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push esi
mov byte [ebp - 0x415], 0
call ebx
test eax, eax
jne 0x103647f
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0x1007068
push dword [ebp - 0x41c]
mov dword [ebp - 0x424], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1036435
cmp dword [ebp - 0x420], 1
jne 0x1036435
lea eax, [ebp - 0x414]
push eax
push 0x1006f78
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1036435
mov byte [ebp - 0x415], 1
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x415], 0
je 0x103647f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x20c]
push eax
push esi
call ebx
push dword [ebp - 0x428]
lea eax, [ebp - 0x20c]
push 0x1006f58
push edi
push eax
call fcn.01027f64
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102df7d
leave
ret 4
Function at 0x1036495
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
lea eax, [ebp - 0x2a0]
push eax
mov ebx, 0x2001f
push ebx
push esi
push dword [0x103f06c]
mov dword [ebp - 0x290], esi
push 0x80000002
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 0x298], esi
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x2a4], esi
call edi
test eax, eax
jne 0x103663c
lea eax, [ebp - 0x290]
push eax
push ebx
push esi
push 0x10042dc
push dword [ebp - 0x2a0]
mov dword [ebp - 0x29c], esi
call edi
test eax, eax
jne 0x1036630
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x28c]
push eax
push esi
jmp 0x1036606
inc dword [ebp - 0x2a4]
lea eax, [ebp - 0x29c]
push eax
push ebx
push esi
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x290]
call edi
test eax, eax
jne 0x10365ee
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push esi
push 0x10042c4
push dword [ebp - 0x29c]
mov dword [ebp - 0x298], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10365d3
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push esi
push 0x10042a0
push dword [ebp - 0x29c]
mov dword [ebp - 0x298], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10365d3
lea eax, [ebp - 0x28c]
push eax
push 0x100427c
lea eax, [ebp - 0x84]
push 0x3f
push eax
call fcn.01027f64
add esp, 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x84]
push eax
call fcn.01031d94
push dword [ebp - 0x29c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x2a4]
push dword [ebp - 0x290]
mov dword [ebp - 0x294], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1036532
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x2a0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
push esi
push 0x1007114
call fcn.01031d94
push esi
push 0x10070fc
call fcn.01031d94
push esi
push 0x10070e4
call fcn.01031d94
push esi
push 0x10070bc
call fcn.01031d94
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102df7d
leave
ret 4
Function at 0x1038d8d
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push eax
push dword [0x103f06c]
mov dword [ebp - 0x430], ecx
mov ecx, dword [ebp + 0x14]
push 0x10068ac
mov dword [ebp - 0x42c], ecx
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x20c]
xor ebx, ebx
push 0x103
push eax
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x424], ebx
call fcn.01027f64
add esp, 0x14
lea eax, [ebp - 0x420]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1038fe4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x418]
push eax
push ebx
push 0x1008f0c
push dword [ebp - 0x420]
xor edi, edi
inc edi
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x41c], 0x208
call esi
test eax, eax
jne 0x1038f02
cmp dword [ebp - 0x418], edi
je 0x1038e71
cmp dword [ebp - 0x418], 2
jne 0x1038f02
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1038e7a
sub eax, edx
sar eax, 1
cmp eax, 5
jbe 0x1038f02
cmp dword [ebp - 0x418], 2
mov edi, 0x104
jne 0x1038ed4
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1038fd6
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01027e68
test eax, eax
jl 0x1038fd6
push 1
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0103c444
test eax, eax
jl 0x1038f02
lea eax, [ebp - 0x414]
push eax
call fcn.0102e8b9
test eax, eax
je 0x1038fd6
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x430]
lea eax, [ebp - 0x418]
push eax
push ebx
push 0x10068cc
push dword [ebp - 0x420]
call esi
test eax, eax
jne 0x1038fd6
cmp dword [ebp - 0x418], 1
jne 0x1038fd6
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x42c]
lea eax, [ebp - 0x418]
push eax
push ebx
push 0x1008fcc
push dword [ebp - 0x420]
call esi
test eax, eax
jne 0x1038fd6
cmp dword [ebp - 0x418], 1
jne 0x1038fd6
mov edi, dword [ebp + 0x20]
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
lea eax, [ebp - 0x418]
push eax
push ebx
push 0x1003784
push dword [ebp - 0x420]
mov dword [ebp - 0x41c], edi
call esi
test eax, eax
jne 0x1038fbb
cmp dword [ebp - 0x418], 1
je 0x1038fcc
cmp dword [ebp - 0x418], 2
je 0x1038fcc
push 0x1002720
push edi
push dword [ebp - 0x428]
call fcn.01027ea2
mov dword [ebp - 0x424], 1
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x424]
xor ecx, ebp
pop ebx
call fcn.0102df7d
leave
ret 0x1c