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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fce0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40fc9e
push 0x14b
push 0x47a810
push 0x47a844
push 0x47a860
call fcn.0040b8a0
add esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x24]
mov eax, 1
shl eax, cl
test edx, eax
je 0x40fe18
mov bl, cl
push 1
add bl, 0x41
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x14], bl
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042fa80
push 0x47a870
lea ecx, [ebp - 0x10]
xor esi, esi
push eax
push ecx
mov dword [ebp - 4], esi
call fcn.00436c50
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004368f0
lea edx, [ebp - 0x10]
push edx
call fcn.00405af0
add esp, 4
cmp eax, 2
je 0x40fd18
cmp eax, 3
jne 0x40fe06
xor ecx, ecx
cmp eax, 3
sete cl
mov eax, ecx
xor edi, edi
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x40fd4c
mov edx, dword [ebp - 0x14]
push edx
call fcn.0041a120
mov edi, eax
add esp, 4
cmp edi, 7
je 0x40fd43
cmp edi, 4
jne 0x40fd4a
mov esi, 1
jmp 0x40fd4c
xor esi, esi
cmp bl, 0x43
jl 0x40fe39
push 0
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.00405ab0
add esp, 0xc
test eax, eax
jne 0x40fd71
test esi, esi
je 0x40fe39
mov esi, 1
mov edi, 1
mov edx, dword [ebp - 0x14]
push 1
push edx
lea ecx, [ebp - 0x30]
call fcn.0042fa80
push 0x47a874
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
call fcn.00436c50
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.004368f0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40fdfa
test edi, edi
je 0x40fdfa
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
cmp edi, eax
jl 0x40fde1
push 0x17f
push str.C:p_roboform_6_9_9_roboformStringsRfPortable.cpp
push 0x47a8ac
push 0x47a8c8
call fcn.0040b8a0
add esp, 0x10
mov edx, dword [ebp + 8]
inc edi
test esi, esi
mov byte [edi + edx - 1], bl
mov dword [ebp - 0x1c], edi
je 0x40fdfa
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
jne 0x40fdfa
mov byte [eax], bl
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004368f0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004368f0
mov ecx, dword [ebp - 0x18]
inc ecx
cmp ecx, 0x20
mov dword [ebp - 0x18], ecx
jl 0x40fcb6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
xor esi, esi
test eax, eax
je 0x40fe4f
test edi, edi
jne 0x40fe4f
cmp bl, 0x45
jge 0x40fd76
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40fe75
test eax, eax
jne 0x40fd76
push eax
lea ecx, [ebp - 0x10]
push 1
push ecx
call fcn.00405ab0
add esp, 0xc
test eax, eax
jne 0x40fd76
xor edi, edi
jmp 0x40fd7b
Function at 0x410d60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x484980]
push esi
xor esi, esi
cmp eax, esi
jne 0x410e52
push 0x484970
push 0x48494c
push 0x484958
call fcn.00410ef0
add esp, 0xc
test eax, eax
jne 0x410da6
mov dword [0x484958], esi
mov dword [0x48494c], esi
mov dword [0x484970], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push ebx
push edi
mov ecx, 0x25
xor eax, eax
mov edi, 0x4848b8
rep stosd dword es:[edi], eax
push 0x4848b8
mov dword [0x4848b8], 0x94
call esi
mov eax, dword [0x4848c8]
mov ebx, 1
cmp eax, ebx
jne 0x410de5
and dword [0x4848c4], 0xffff
mov eax, dword [0x4848bc]
mov dword [0x48497c], 0
cmp eax, 5
jne 0x410e04
cmp dword [0x4848c0], 2
jne 0x410e36
jmp 0x410e30
cmp eax, 6
jb 0x410e36
mov ecx, 0x27
xor eax, eax
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x9c
push eax
call esi
cmp byte [ebp - 2], bl
je 0x410e36
mov dword [0x48497c], ebx
push 0
push str.comctl32.dll
call fcn.00411030
add esp, 8
mov dword [0x484980], ebx
mov dword [0x484968], eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4110c0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43febf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x34]
mov dword [ebp - 0x14], 0
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [0x4804ec]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x48496c]
dec eax
shr eax, 0x14
inc eax
dec ecx
push edx
mov edx, dword [ebp - 0x28]
shr ecx, 0x14
inc ecx
dec edx
push eax
mov eax, dword [ebp - 0x2c]
shr edx, 0x14
inc edx
dec eax
shr eax, 0x14
push ecx
mov ecx, dword [ebp - 0x30]
inc eax
push edx
push eax
push ecx
lea edx, [ebp - 0x10]
mov edi, 1
push str.Mem____d_tp_ld_ap_ld_tf_ld_af_ld_tls_d
push edx
mov dword [ebp - 4], edi
call fcn.004305b0
mov esi, dword [ebp + 8]
add esp, 0x20
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00436750
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.004368f0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x411e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
mov dword [ebp - 4], 0
jne 0x411e4d
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
jmp 0x411e67
mov edx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411ebb
lea eax, [ebp + 8]
push edi
lea ecx, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
push 0
push eax
push ecx
mov dword [ebp - 8], 0
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test esi, esi
mov edi, eax
je 0x411ea9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
sub eax, 2
je 0x411ebb
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x412350
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x440148
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 4]
test edx, edx
jne 0x4123a0
mov eax, dword [edi + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push eax
push ecx
push 0x47b5b4
push edx
call fcn.004305b0
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41240e
lea ecx, [ebp + 0xc]
push eax
push ecx
call fcn.0040ad30
add esp, 8
mov edx, dword [eax]
mov eax, dword [edi + 8]
mov ecx, dword [ebp + 0x10]
push edx
push eax
push esi
push 0x47b5f4
push ecx
mov dword [ebp - 4], 0
call fcn.004305b0
add esp, 0x14
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004368f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
jne 0x412466
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push eax
push ecx
push 0x47b620
push edx
call fcn.004305b0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x103
mov ecx, edi
mov dword [ebp - 4], 0x104
mov dword [ebp - 8], 0
call fcn.00436e70
mov ebx, dword [ebp + 0xc]
mov edx, dword [esi + 4]
lea ecx, [ebp - 8]
push eax
push ecx
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x4124c5
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
dec ecx
push eax
push ecx
mov ecx, edi
call fcn.00436e70
lea edx, [ebp - 8]
push eax
mov eax, dword [esi + 4]
push edx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4124e3
mov ecx, dword [ebp - 4]
dec ecx
push ecx
mov ecx, edi
call fcn.00436ef0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
mov ecx, edi
call fcn.00436ef0
mov edx, dword [esi + 8]
mov eax, dword [ebp + 0x10]
push edx
push ebx
push 0x47b660
push eax
call fcn.004305b0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x412510
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
jne 0x412546
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push eax
push ecx
push 0x47b688
push edx
call fcn.004305b0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x104
mov ecx, edi
mov dword [ebp - 4], 0x104
mov dword [ebp - 8], 0
call fcn.00436e70
mov ebx, dword [ebp + 0xc]
mov edx, dword [esi + 4]
lea ecx, [ebp - 8]
push eax
push ecx
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x4125a4
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, edi
call fcn.00436e70
lea edx, [ebp - 8]
push eax
mov eax, dword [esi + 4]
push edx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4125c1
mov ecx, dword [ebp - 4]
push ecx
mov ecx, edi
call fcn.00436ef0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
mov ecx, edi
call fcn.00436ef0
mov edx, dword [esi + 8]
mov eax, dword [ebp + 0x10]
push edx
push ebx
push 0x47b6c8
push eax
call fcn.004305b0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4125f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x440168
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
jne 0x412640
mov eax, dword [edi + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push eax
push ecx
push str.Cannot_set_registry_value__s_in__s:_parent_was_not_created
push edx
call fcn.004305b0
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push 4
push ecx
push 4
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4126a9
lea edx, [ebp + 0xc]
push eax
push edx
call fcn.0040ad30
add esp, 8
mov eax, dword [eax]
mov ecx, dword [edi + 8]
mov edx, dword [ebp + 0x10]
push eax
push ecx
push esi
push str.Cannot_set_registry_value__s_in__s:__s
push edx
mov dword [ebp - 4], 0
call fcn.004305b0
add esp, 0x14
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004368f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4126c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
jne 0x4126f4
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push eax
push ecx
push str.Cannot_get_registry_value__s_in__s:_parent_was_not_created
push edx
call fcn.004305b0
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 8]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 4]
push edx
push ecx
push 0
push edi
push eax
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412738
cmp dword [ebp - 4], 4
jne 0x412738
cmp dword [ebp - 8], 4
jne 0x412738
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi + 8]
mov eax, dword [ebp + 0x10]
push edx
push edi
push str.Cannot_read_registry_value__s_in__s
push eax
call fcn.004305b0
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412760
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440190
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
mov dword [ebp - 0x10], 0
je 0x4127e7
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040ad30
add esp, 8
mov ecx, dword [eax]
mov edx, dword [esi + 8]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push edi
push str.Cannot_delete_registry_value__s_in__s:__s
push eax
mov byte [ebp - 4], 1
call fcn.004305b0
add esp, 0x14
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.004368f0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x412800
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4401b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov edi, dword [ecx + 4]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push ebx
push ecx
push edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x412868
lea ecx, [ebp - 0x10]
call fcn.00412ac0
mov esi, eax
mov eax, dword [ebp - 0x14]
cmp esi, ebx
mov dword [ebp - 0x10], eax
je 0x412878
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00412ac0
jmp 0x412909
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x18]
push edx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x128]
push ecx
push edx
push ebx
push eax
mov dword [ebp - 0x18], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4128da
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x10]
push eax
call fcn.00412ae0
mov esi, eax
cmp esi, ebx
jne 0x412868
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x10]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x128]
push edx
push eax
push ebx
push ecx
mov dword [ebp - 0x18], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x41289d
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x4128ed
push eax
call esi
mov dword [ebp - 0x10], ebx
mov edx, dword [ebp + 8]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x412907
push eax
call esi
mov esi, edi
cmp esi, ebx
mov dword [ebp - 0x1c], ebx
je 0x412960
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0040ad30
add esp, 8
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov edx, dword [ebp + 0xc]
push eax
push ecx
push str.Cannot_recurse_delete_registry_key__s_in__s:__s
push edx
mov byte [ebp - 4], 2
call fcn.004305b0
add esp, 0x14
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004368f0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x412ae0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], edi
mov edx, dword [ebp + 8]
mov eax, dword [ebx]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
push ecx
push 0x2001f
push edi
push edx
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x412b4c
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp ecx, edi
je 0x412b3e
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
cmp eax, edi
mov esi, eax
mov dword [ebp - 0x10], ecx
je 0x412b5d
jmp 0x412b4f
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
je 0x412bee
push ecx
jmp 0x412be8
lea eax, [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push edi
push edi
lea edx, [ebp - 0x14]
push edi
lea eax, [ebp - 0x124]
push edx
push eax
push edi
push ecx
mov dword [ebp - 0x14], 0x100
call esi
test eax, eax
jne 0x412bc0
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00412ae0
mov ebx, eax
cmp ebx, edi
jne 0x412c03
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x10]
push edi
push edi
push edi
lea ecx, [ebp - 0x124]
push eax
push ecx
push edi
push edx
mov dword [ebp - 0x14], 0x100
call esi
test eax, eax
je 0x412b84
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x412bd1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x412bee
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x412c11
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x413140
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x484a8c]
push esi
test eax, eax
je 0x413166
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
call eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41317c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x110]
push 0
push edx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov esi, eax
test esi, esi
je 0x413313
cmp esi, 0x104
jb 0x4131b4
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x413313
lea ecx, [ebp - 0x318]
push 0x104
push ecx
lea edx, [ebp - 0x110]
push 0xffffffffffffffff
push edx
push 0
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x413218
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x413206
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
xor esi, esi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
lea edx, [ebp + 8]
push 0
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x318]
push edx
push 0
push 0
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x413282
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x413268
and eax, 0xffff
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
xor esi, esi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
xor esi, esi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x110]
push edi
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov esi, eax
test esi, esi
jne 0x4132ae
mov al, byte [ebp - 0x110]
test al, al
je 0x4132ae
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4132e5
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [ebp + 0x10]
lea edi, [esi + 1]
cmp edi, eax
jbe 0x4132d3
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
jmp 0x4132e5
push eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x110]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
pop edi
jl 0x41330a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4137b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x413831
mov eax, dword [ebp - 4]
test eax, eax
je 0x413831
lea ecx, [ebp - 0xc]
push esi
push ecx
lea edx, [ebp - 8]
lea ecx, [ebp - 0x10]
push edx
push ecx
push 0
push str.EnableLUA
push eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x413831
mov eax, dword [ebp - 8]
test eax, eax
jne 0x413831
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x416590
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x484964], 0xffffffff
jne 0x4165ac
push 0
push 0
push 0x4e
push str.C:p_roboform_6_9_9_roboformStringsRfTls.h
call fcn.0040e7e0
add esp, 0x10
mov eax, dword [0x484964]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4165e1
push 0x50
push str.C:p_roboform_6_9_9_roboformStringsRfTls.h
push 0x4534a4
push 0x453494
call fcn.0040b8a0
add esp, 0x10
test esi, esi
jne 0x416662
mov ecx, dword [0x484964]
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x416662
push 0x2c
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x416615
push eax
push eax
push 0x3c
push str.C:p_roboform_6_9_9_roboformStringsRfTls.h
call fcn.0040e7e0
add esp, 0x10
mov edx, dword [0x484964]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x416640
push 0x3e
push str.C:p_roboform_6_9_9_roboformStringsRfTls.h
push 0x4534a4
push 0x453494
call fcn.0040b8a0
add esp, 0x10
test esi, esi
jne 0x416662
push 0x55
push str.C:p_roboform_6_9_9_roboformStringsRfTls.h
push 0x4534a4
push 0x453494
call fcn.0040b8a0
add esp, 0x10
pop edi
xor eax, eax
pop esi
ret
mov esi, dword [esi]
test esi, esi
je 0x41665d
mov eax, 3
lea ecx, [esi + 0x24]
cmp dword [ecx], 0
jne 0x416682
dec eax
sub ecx, 0xc
test eax, eax
jge 0x416670
pop edi
xor eax, eax
pop esi
ret
pop edi
inc eax
pop esi
ret