joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ad1a
Capabilities:
Set registry value

Disassembly:
cmp byte [esp + 8], 0
mov eax, edi
push esi
lea esi, [eax + 2]
je 0x40ad3c
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40ad27
sub eax, esi
sar eax, 1
inc eax
push eax
push edi
push 2
jmp 0x40ad52
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40ad3c
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 1]
push eax
push edi
push 1
push 0
push dword [esp + 0x18]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
pop esi
ret 8

Function at 0x40ad6a
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x504db7
call fcn.004e3d00
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call esi
test eax, eax
jne 0x40ae39
cmp dword [ebp - 0x10], 1
je 0x40adb0
cmp dword [ebp - 0x10], 2
jne 0x40ae39
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004bd34c
mov ebx, eax
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax + 1]
push eax
push 0
push ebx
call fcn.004e38a0
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call esi
test eax, eax
jne 0x40ae31
cmp dword [ebp - 0x10], 1
je 0x40ae00
cmp dword [ebp - 0x10], 2
jne 0x40ae31
push ebx
lea ecx, [ebp + 8]
call fcn.0040253b
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
push eax
call fcn.004025da
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040285b
push ebx
call fcn.004bd341
xor eax, eax
pop ecx
inc eax
jmp 0x40ae3b
push ebx
call fcn.004bd341
jmp 0x40ae2b
xor eax, eax
call fcn.004e3dd8
ret 8

Function at 0x40ae43
Capabilities:
Set registry value

Disassembly:
push 4
push dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x14]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
ret 8

Function at 0x40aeda
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push 3
push 0
push dword [esp + 0x14]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
ret 0xc
Function at 0x40aefb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x5ff740]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x18
mov eax, 0x504d87
call fcn.004e3d00
mov eax, dword [ebp + 0x40c]
mov esi, ecx
xor edi, edi
push 0x5afd90
lea ecx, [ebp - 0x18]
mov ebx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call fcn.0040253b
xor eax, eax
mov dword [ebp - 4], edi
push 0x3fe
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.004e38a0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [esi]
mov dword [ebp - 0x1c], edi
push edi
push ebx
push dword [esi + 4]
mov dword [ebp - 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x40afa7
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x40afa7
mov ecx, dword [ebp - 0x20]
push 0xffffffffffffffff
push edi
call fcn.004c932b
xor ebx, ebx
cmp dword [ebp - 0x14], edi
jbe 0x40affc
cmp esi, edi
je 0x40affc
push edi
push edi
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x40aff6
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402719
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
push dword [ecx + 8]
call fcn.004c96e8
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x40afae
cmp dword [ebp - 0x10], edi
je 0x40b00d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], edi
cmp esi, edi
je 0x40b014
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040285b
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.004de422
add ebp, 0x404
leave
ret 4
Function at 0x40c539
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x40c616
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push edi
push 1
push dword [esi + 0x10]
push 0x30
push eax
call ebx
movzx eax, word [esi]
push 5
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov ecx, ebp
call fcn.0040c04d
xor edi, edi
and dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov eax, 0xffff
cmp word [ebp + 2], ax
lea eax, [ebp + 0x10]
je 0x40c59d
lea eax, [ebp + 8]
movzx eax, word [eax]
cmp dword [esp + 0xc], eax
jge 0x40c5ff
cmp dword [esp + 0xc], 0
jne 0x40c5b4
push 5
push dword [esi + 8]
jmp 0x40c5b7
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
je 0x40c5ff
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx + 0x14]
je 0x40c5e2
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x40c5c3
test edi, edi
je 0x40c5ff
push 1
push dword [esi + 0x10]
push 0x30
push edi
call ebx
mov eax, dword [esp + 0x10]
call fcn.0040c0c9
inc dword [esp + 0xc]
jmp 0x40c588
push dword [esi + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
xor eax, eax
pop ebp
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
pop ebx
pop ecx
pop ecx
ret
Function at 0x40ded0
Capabilities:
Get common file path

Disassembly:
push 0x210
mov eax, 0x504cf8
call fcn.004e3d69
xor edi, edi
lea esi, [ebx + 0x2018]
mov dword [ebx], vtable.CCategory.0
mov dword [ebx + 0x2004], edi
mov dword [ebx + 0x2008], edi
mov dword [ebx + 0x200c], edi
mov dword [ebx + 0x2010], edi
mov dword [ebx + 0x2014], edi
mov dword [ebp - 0x21c], ebx
mov dword [esi], vtable.CArray_class_CProblem___class_CProblem__const_const__.0
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
lea ecx, [ebx + 0x202c]
mov dword [ebp - 4], edi
call fcn.0040281e
push 0x2000
lea eax, [ebx + 4]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.004e38a0
add esp, 0xc
mov eax, 0x104
push eax
push eax
lea ecx, [ebx + 0x202c]
call fcn.00402963
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebx + 0x202c]
call fcn.004145ba
push 0x5b2450
lea ecx, [ebx + 0x202c]
call fcn.0041417d
cmp dword [0x609af8], edi
jne 0x40dfa5
push str.GetSystemWow64DirectoryW
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x609af8], eax
cmp eax, edi
je 0x40dff4
mov eax, dword [0x609afc]
cmp dword [eax - 0xc], edi
jne 0x40dff4
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.004e38a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [0x609af8]
test eax, eax
je 0x40dff4
lea eax, [ebp - 0x218]
push eax
mov ecx, 0x609afc
call fcn.00402719
xor edi, edi
call fcn.004aa745
mov eax, ebx
call fcn.004e3dec
ret
Function at 0x40e0c1
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x34
mov eax, 0x504cbc
call fcn.004e3d33
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
call fcn.004c932b
lea eax, [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x24], ebx
jbe 0x40e1eb
push 0x3fc
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call fcn.004bd34c
pop ecx
mov dword [ebp - 0x1c], eax
call fcn.00482292
mov byte [ebp - 0x15], al
mov dword [ebp - 0x28], ebx
movzx eax, word [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
jae 0x40e1cb
lea ecx, [ebp - 0x40]
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x1c]
mov dword [ebp - 0x2c], 0xff
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x40e1c3
cmp byte [ebp - 0x15], bl
je 0x40e1b4
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.0040253b
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004140e6
mov ebx, edi
call fcn.0040db9b
mov ebx, eax
call fcn.0040dbe8
push 0x5b2de4
xor ecx, ecx
mov esi, edi
call fcn.0040788c
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
test eax, eax
jne 0x40e1ad
call fcn.0040285b
xor ebx, ebx
jmp 0x40e1c3
call fcn.0040285b
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x1c]
mov eax, dword [ecx + 8]
push eax
call fcn.004c973a
inc dword [ebp - 0x28]
jmp 0x40e12e
or dword [ebp - 4], 0xffffffff
jmp 0x40e1dd
cmp dword [ebp - 0x1c], ebx
je 0x40e1eb
push dword [ebp - 0x1c]
call fcn.004bd341
pop ecx
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp dword [ecx + 8], ebx
setne al
call fcn.004e3dd8
ret
Function at 0x40e1fc
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x500b98
call fcn.004e3d33
mov ecx, dword [ebp + 0xc]
xor esi, esi
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], esi
call fcn.004c932b
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x18], esi
jbe 0x40e2d0
mov ebx, 0x400
push 0x1000
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], esi
call fcn.004bd34c
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esi
movzx edi, word [ebp - 0x1c]
cmp edi, dword [ebp - 0x18]
jae 0x40e2b0
push 0x800
push esi
push dword [ebp - 0x14]
call fcn.004e38a0
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
jne 0x40e2ab
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x14]
mov eax, dword [ecx + 8]
push eax
call fcn.004c973a
inc dword [ebp - 0x1c]
jmp 0x40e266
or dword [ebp - 4], 0xffffffff
jmp 0x40e2c2
cmp dword [ebp - 0x14], esi
je 0x40e2d0
push dword [ebp - 0x14]
call fcn.004bd341
pop ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
call fcn.004e3dd8
ret 8
Function at 0x40e2de
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2c
mov eax, 0x504c99
call fcn.004e3d33
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push 0xffffffffffffffff
xor eax, eax
mov dword [ebp - 0x38], ebx
lea edi, [ebp - 0x34]
push ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
stosd dword es:[edi], eax
call fcn.004c932b
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x1c], ebx
jbe 0x40e40f
push 0x3fc
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0xff
mov dword [ebp - 4], ebx
call fcn.004bd34c
mov esi, eax
pop ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], ebx
movzx edi, word [ebp - 0x18]
cmp edi, dword [ebp - 0x1c]
jae 0x40e3ef
push 0x1fe
push ebx
push esi
call fcn.004e38a0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x20], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
jne 0x40e3e7
push esi
cmp word [ebp - 0x18], bx
jne 0x40e3db
lea ecx, [ebp - 0x14]
call fcn.0040253b
lea ebx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040dbe8
call fcn.0040db9b
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x40e3c8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
push esi
push eax
call fcn.004c973a
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040285b
xor ebx, ebx
jmp 0x40e3e7
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
push eax
call fcn.004c973a
inc dword [ebp - 0x18]
jmp 0x40e358
or dword [ebp - 4], 0xffffffff
jmp 0x40e404
cmp esi, ebx
je 0x40e40f
push esi
call fcn.004bd341
pop ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
call fcn.004e3dd8
ret 8

Function at 0x40e478
Capabilities:
Get file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
je 0x40e495
not al
movzx esi, al
shr esi, 4
and esi, 1
mov ecx, dword [esp + 8]
add ecx, 0xfffffff0
call fcn.0040285b
mov eax, esi
pop esi
ret 4
Function at 0x4107f9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x502290
call fcn.004e3d00
mov ebx, ecx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
call fcn.00482292
test al, al
je 0x410833
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040285b
mov eax, esi
jmp 0x41092f
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
mov esi, 0x104
mov ecx, ebx
mov dword [ebp - 0x10], esi
call fcn.00402639
push dword [ebp + 0xc]
mov eax, 0x2001f
push dword [ebp + 8]
lea edi, [ebp - 0x1c]
call fcn.0041455e
mov dword [ebp - 0x14], eax
cmp eax, 5
jne 0x41087c
push dword [ebp + 0xc]
mov eax, 0x20019
push dword [ebp + 8]
call fcn.0041455e
mov dword [ebp - 0x14], eax
xor edi, edi
cmp dword [ebp - 0x14], edi
jne 0x410909
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
push dword [ebp - 0x1c]
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4108f8
cmp dword [ebp + 8], 1
je 0x4108b3
cmp dword [ebp + 8], 2
jne 0x4108f8
cmp dword [ebp - 0x10], esi
jbe 0x4108bb
mov esi, dword [ebp - 0x10]
push esi
mov ecx, ebx
call fcn.00402963
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
push ecx
lea esi, [ebp - 0x10]
mov edi, eax
call fcn.004144f6
push 0xffffffffffffffff
mov ecx, ebx
mov esi, eax
call fcn.004145ba
test esi, esi
jne 0x4108f8
mov eax, dword [ebx]
cmp dword [eax - 0xc], esi
je 0x4108ff
call fcn.0040db9b
mov ebx, eax
call fcn.0040dbe8
jmp 0x4108ff
mov ecx, ebx
call fcn.00402639
lea ecx, [ebp - 0x1c]
call fcn.0041459a
xor edi, edi
lea ecx, [ebp - 0x1c]
call fcn.0041459a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040285b
xor eax, eax
cmp dword [ebp - 0x14], edi
sete al
call fcn.004e3dd8
ret 0xc
Function at 0x410937
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x50225d
call fcn.004e3d00
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 2
mov esi, 0x104
mov dword [ebp - 0x14], esi
call fcn.00402639
push dword [ebp + 0xc]
mov eax, 0x2021f
push dword [ebp + 8]
lea edi, [ebp - 0x20]
call fcn.0041455e
mov dword [ebp - 0x18], eax
cmp eax, 5
jne 0x410990
push dword [ebp + 0xc]
mov eax, 0x20219
push dword [ebp + 8]
call fcn.0041455e
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
jne 0x410a26
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
push dword [ebp - 0x20]
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410a16
cmp dword [ebp + 8], 1
je 0x4109c5
cmp dword [ebp + 8], 2
jne 0x410a16
cmp dword [ebp - 0x14], esi
jbe 0x4109cd
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
push esi
call fcn.00402963
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
push ecx
lea esi, [ebp - 0x14]
mov edi, eax
call fcn.004144f6
mov esi, dword [ebp + 0x14]
push 0xffffffffffffffff
mov ecx, esi
mov edi, eax
call fcn.004145ba
cmp edi, ebx
jne 0x410a12
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x410a1e
mov ebx, esi
call fcn.0040db9b
mov ebx, eax
call fcn.0040dbe8
xor ebx, ebx
jmp 0x410a1e
mov ecx, esi
jmp 0x410a19
mov ecx, dword [ebp + 0x14]
call fcn.00402639
lea ecx, [ebp - 0x20]
call fcn.0041459a
lea ecx, [ebp - 0x20]
call fcn.0041459a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040285b
xor eax, eax
cmp dword [ebp - 0x18], ebx
sete al
call fcn.004e3dd8
ret 0x10
Function at 0x410a54
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x50225d
call fcn.004e3d00
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 2
mov esi, 0x104
mov dword [ebp - 0x14], esi
call fcn.00402639
push dword [ebp + 0xc]
mov eax, 0x2011f
push dword [ebp + 8]
lea edi, [ebp - 0x20]
call fcn.0041455e
mov dword [ebp - 0x18], eax
cmp eax, 5
jne 0x410aad
push dword [ebp + 0xc]
mov eax, 0x20119
push dword [ebp + 8]
call fcn.0041455e
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
jne 0x410b43
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
push dword [ebp - 0x20]
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410b33
cmp dword [ebp + 8], 1
je 0x410ae2
cmp dword [ebp + 8], 2
jne 0x410b33
cmp dword [ebp - 0x14], esi
jbe 0x410aea
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
push esi
call fcn.00402963
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
push ecx
lea esi, [ebp - 0x14]
mov edi, eax
call fcn.004144f6
mov esi, dword [ebp + 0x14]
push 0xffffffffffffffff
mov ecx, esi
mov edi, eax
call fcn.004145ba
cmp edi, ebx
jne 0x410b2f
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x410b3b
mov ebx, esi
call fcn.0040db9b
mov ebx, eax
call fcn.0040dbe8
xor ebx, ebx
jmp 0x410b3b
mov ecx, esi
jmp 0x410b36
mov ecx, dword [ebp + 0x14]
call fcn.00402639
lea ecx, [ebp - 0x20]
call fcn.0041459a
lea ecx, [ebp - 0x20]
call fcn.0041459a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040285b
xor eax, eax
cmp dword [ebp - 0x18], ebx
sete al
call fcn.004e3dd8
ret 0x10
Function at 0x41127a
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x50f019
call fcn.004e3d00
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0040253b
and dword [ebp - 4], 0
mov edi, eax
call fcn.004140e6
push eax
lea ecx, [ebp + 8]
call fcn.00402305
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040285b
cmp byte [ebp + 0xc], 0
jne 0x41135a
mov edi, str._syswow64_
push edi
xor ecx, ecx
lea esi, [ebp + 8]
call fcn.0040788c
cmp eax, 0xffffffff
je 0x411330
mov eax, esi
push eax
lea ecx, [ebp + 0xc]
call fcn.00402305
push str._system32_
push edi
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 3
call fcn.00413f47
mov edi, dword [ebp + 0xc]
push edi
call fcn.0041331e
test eax, eax
jge 0x411325
push dword [ebp + 8]
call fcn.0041331e
mov esi, eax
lea ecx, [edi - 0x10]
call fcn.0040285b
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040285b
mov eax, esi
call fcn.004e3dd8
ret 8
jne 0x411306
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x411306
mov ebx, str._system32_
push ebx
xor ecx, ecx
lea esi, [ebp + 8]
call fcn.0040788c
cmp eax, 0xffffffff
je 0x41135a
mov eax, esi
push eax
lea ecx, [ebp + 0xc]
call fcn.00402305
mov byte [ebp - 4], 4
jmp 0x4113c5
jne 0x411308
jmp 0x411327
mov edi, str.program_files__x86__
push edi
xor ecx, ecx
lea esi, [ebp + 8]
call fcn.0040788c
cmp eax, 0xffffffff
je 0x4113a1
mov eax, esi
push eax
lea ecx, [ebp + 0xc]
call fcn.00402305
push str.program_files_
mov byte [ebp - 4], 5
push edi
lea eax, [ebp + 0xc]
push eax
call fcn.00413f47
mov edi, dword [ebp + 0xc]
push edi
call fcn.0041331e
mov esi, eax
test esi, esi
jge 0x411356
jmp 0x4112fe
mov ebx, str.program_files_
push ebx
xor ecx, ecx
lea esi, [ebp + 8]
call fcn.0040788c
cmp eax, 0xffffffff
je 0x4113c9
mov eax, esi
push eax
lea ecx, [ebp + 0xc]
call fcn.00402305
mov byte [ebp - 4], 6
push edi
push ebx
jmp 0x411384
push dword [ebp + 8]
call fcn.0041331e
mov esi, eax
jmp 0x411310
Function at 0x4144f6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41455a
cmp dword [ebp + 0xc], 1
je 0x414532
cmp dword [ebp + 0xc], 2
je 0x414532
push 0xd
pop eax
jmp 0x41455a
mov eax, dword [ebp - 4]
test edi, edi
je 0x414554
test eax, eax
je 0x41454f
test al, 1
jne 0x41452d
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x414554
jmp 0x41452d
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x422c6b
Capabilities:
Query environment variable

Disassembly:
push 0x41c
mov eax, 0x5048ee
call fcn.004e3d69
mov eax, dword [ebp + 8]
and dword [ebp - 0x424], 0
mov dword [ebp - 0x428], eax
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0xa
jl 0x422d50
lea edi, [ebp + 0xc]
call fcn.004140e6
mov edi, str._userprofile_
push edi
xor ecx, ecx
lea esi, [ebp + 0xc]
call fcn.0040788c
cmp eax, 0xffffffff
je 0x422d50
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x424]
call fcn.004027f9
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 0x428]
mov byte [ebp - 4], 1
push dword [eax + 0x2074]
lea ecx, [eax + 0x2044]
call fcn.004cc99a
push 0x207
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x422d32
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x424]
call fcn.00402719
push dword [ebp - 0x424]
mov eax, esi
push edi
push eax
call fcn.00413f47
lea eax, [ebp - 0x424]
push eax
mov ecx, ebx
call fcn.00402305
mov ecx, dword [ebp - 0x424]
add ecx, 0xfffffff0
call fcn.0040285b
jmp 0x422d5b
lea eax, [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.00402305
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040285b
mov eax, ebx
call fcn.004e3dec
ret 8