joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4307c4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43a3f4], ebx
push esi
push edi
jne 0x430844
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43087f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x437904
push edi
call esi
test eax, eax
mov dword [0x43a3f4], eax
je 0x43087f
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x43a3f8], eax
call esi
cmp dword [0x43a038], 2
mov dword [0x43a3fc], eax
jne 0x430844
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x43a404], eax
je 0x430844
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x43a400], eax
mov eax, dword [0x43a400]
test eax, eax
je 0x430889
call eax
test eax, eax
je 0x430870
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43a404]
test eax, eax
je 0x430870
test byte [ebp - 8], 1
jne 0x430889
cmp dword [0x43a044], 4
jb 0x430883
or byte [ebp + 0x12], 0x20
jmp 0x4308a8
xor eax, eax
jmp 0x4308b8
or byte [ebp + 0x12], 4
jmp 0x4308a8
mov eax, dword [0x43a3f8]
test eax, eax
je 0x4308a8
call eax
mov ebx, eax
test ebx, ebx
je 0x4308a8
mov eax, dword [0x43a3fc]
test eax, eax
je 0x4308a8
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43a3f4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432ac7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x432c9d
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x43a760]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x432c9d
test cl, 0x48
je 0x432b32
cmp byte [eax + 5], 0xa
je 0x432b32
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x432b84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x432b6c
call fcn.00428a44
mov dword [eax], 9
call fcn.00428a4d
mov dword [eax], esi
jmp 0x432b7c
cmp eax, 0x6d
je 0x432c9d
push eax
call fcn.00428a56
pop ecx
or eax, 0xffffffff
jmp 0x432c9f
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x432c98
test eax, eax
je 0x432bab
cmp byte [ebx], 0xa
jne 0x432bab
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x432bb4
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x432c92
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x432c82
cmp al, 0xd
je 0x432be6
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x432c74
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x432c00
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x432bfb
add dword [ebp + 0x10], 2
jmp 0x432c54
mov dword [ebp + 0x10], eax
jmp 0x432c70
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x432c28
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x432c70
cmp dword [ebp - 0xc], 0
je 0x432c70
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x432c49
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x432c54
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x432c73
cmp ebx, dword [ebp + 0xc]
jne 0x432c59
cmp byte [ebp - 1], 0xa
jne 0x432c59
mov byte [ebx], 0xa
jmp 0x432c73
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043215c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x432c74
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x432bca
jmp 0x432c92
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x432c92
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x432c9f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433702
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x437c28
call fcn.00427d04
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x43a4e0], edi
jne 0x433746
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x433731
mov dword [0x43a4e0], ebx
jmp 0x433746
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x433746
mov dword [0x43a4e0], 2
mov eax, dword [0x43a4e0]
cmp eax, ebx
jne 0x433766
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x433829
cmp eax, 2
je 0x43376f
cmp eax, edi
jne 0x433797
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x433782
mov eax, dword [0x43a334]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x43379e
xor eax, eax
jmp 0x433829
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004254d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4337d1
cmp esi, edi
jne 0x4337e7
push dword [ebp - 0x20]
call fcn.0042894f
pop ecx
mov esi, eax
cmp esi, edi
je 0x433797
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x43381a
cmp dword [ebp + 0x14], edi
jne 0x433804
push edi
push edi
jmp 0x43380a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x433826
push esi
call fcn.0042873e
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00427d3f
ret
Function at 0x433832
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x437c38
call fcn.00427d04
xor esi, esi
cmp dword [0x43a4e4], esi
jne 0x433876
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x433861
mov dword [0x43a4e4], edi
jmp 0x433876
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x433876
mov dword [0x43a4e4], 2
mov eax, dword [0x43a4e4]
cmp eax, 2
je 0x433957
cmp eax, esi
je 0x433957
cmp eax, 1
jne 0x4338bb
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4338a4
mov eax, dword [0x43a334]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4338c2
xor eax, eax
jmp 0x433969
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004254d0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4338f8
cmp edi, esi
jne 0x433913
lea eax, [ebx + ebx]
push eax
call fcn.0042894f
pop ecx
mov edi, eax
cmp edi, esi
je 0x4338bb
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x433946
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x433930
push esi
push esi
jmp 0x433936
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x433952
push edi
call fcn.0042873e
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x433969
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00427d3f
ret
Function at 0x4341d7
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4341f0
or eax, 0xffffffff
jmp 0x434251
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x43424d
push 0x3d
push esi
call fcn.004343d8
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x43424d
cmp esi, eax
je 0x43424d
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x43a058]
sete cl
cmp eax, dword [0x43a05c]
mov dword [ebp - 4], ecx
jne 0x434233
mov edi, eax
call fcn.00434176
mov dword [0x43a058], eax
cmp eax, ebx
jne 0x43428c
cmp dword [ebp + 0xc], ebx
je 0x434255
cmp dword [0x43a060], ebx
je 0x434255
call fcn.00433cf3
test eax, eax
je 0x43428c
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x43425e
xor eax, eax
jmp 0x434250
push 4
call fcn.0042894f
cmp eax, ebx
pop ecx
mov dword [0x43a058], eax
je 0x43424d
mov dword [eax], ebx
cmp dword [0x43a060], ebx
jne 0x43428c
push 4
call fcn.0042894f
cmp eax, ebx
pop ecx
mov dword [0x43a060], eax
je 0x43424d
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x43a058]
sub edi, esi
push esi
call fcn.00434129
mov edi, eax
test edi, edi
pop ecx
jl 0x4342f3
cmp dword [ebx], 0
je 0x4342f3
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0042873e
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4342d3
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x434334
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x4342ca
mov eax, edi
shl eax, 2
push eax
push dword [0x43a058]
call fcn.0042febb
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x434334
jmp 0x43432f
cmp dword [ebp - 4], 0
jne 0x43439b
test edi, edi
jge 0x434303
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x43a058]
call fcn.0042febb
test eax, eax
pop ecx
pop ecx
je 0x43424d
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x43a058], eax
cmp dword [ebp + 0xc], 0
je 0x434386
push esi
call fcn.0042a610
inc eax
inc eax
push eax
call fcn.0042894f
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x434386
push esi
push edi
call fcn.004287b0
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x43437f
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.0042873e
pop ecx
cmp dword [ebp - 4], 0
je 0x434393
push esi
call fcn.0042873e
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x434250
push esi
call fcn.0042873e
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x43425a
Function at 0x4010b9
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x413a39
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x46c134]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xa4]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xac]
xor ebx, ebx
push 0xff
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x67]
push ebx
push eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
xor esi, esi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x68], bl
call fcn.004246b0
add esp, 0xc
push 1
push edi
push 0x80000001
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x6c], pe_nt_image_headers32
call fcn.00402527
test eax, eax
jne 0x413ac9
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
call dword [0x470694]
test eax, eax
je 0x413afa
push 1
push edi
push 0x80000002
lea ecx, [ebp - 0x78]
call fcn.00402527
test eax, eax
jne 0x413b42
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
call dword [0x470694]
test eax, eax
jne 0x413b42
mov eax, dword [ebp - 0x70]
cmp eax, 4
jne 0x413b16
cmp dword [ebp - 0x6c], eax
jne 0x413b3a
push dword [ebp - 0x80]
call fcn.00425faa
mov esi, eax
sub esi, dword [ebp - 0x68]
jmp 0x413b34
cmp eax, 1
je 0x413b25
cmp eax, 7
je 0x413b25
cmp eax, 2
jne 0x413b3a
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x80]
call fcn.00424b86
pop ecx
mov esi, eax
neg esi
sbb esi, esi
inc esi
pop ecx
lea ecx, [ebp - 0x78]
call fcn.00401e83
lea ecx, [ebp - 0x78]
call fcn.00401e83
mov ecx, dword [ebp + 0x98]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004246a0
add ebp, 0x9c
leave
ret
Function at 0x40114a
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x41ccff
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x46c134]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1b4]
push ebx
push esi
mov esi, dword [ebp + 0x1a8]
push edi
mov dword [ebp - 0x80], eax
xor ebx, ebx
xor eax, eax
push 0x1fe
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push ebx
push eax
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call fcn.004246b0
add esp, 0xc
push 0x104
push esi
push dword [0x46dcd0]
mov dword [ebp - 0x7c], 0x200
call dword [0x470878]
push 0x5c
push esi
call fcn.0042472a
mov esi, eax
xor eax, eax
pop ecx
pop ecx
mov word [esi], ax
mov edi, pe_nt_image_headers32
cmp dword [ebp + 0x1b0], ebx
jne 0x41ce44
push str.SoftwareKingsoftOffice6.0common
push str._sLocal
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.0042969d
add esp, 0x10
push 0x20019
lea eax, [ebp - 0x64]
push eax
push 0x80000001
lea ecx, [ebp - 0x70]
call fcn.00402527
test eax, eax
jne 0x41cded
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push str.UILanguage
push dword [ebp - 0x70]
call dword [0x470694]
test eax, eax
jne 0x41cded
cmp dword [ebp - 0x68], 4
je 0x41ce2d
cmp dword [ebp - 0x68], 1
je 0x41ce6e
push 0x20019
push str.SoftwareKingsoftOffice6.0common
push 0x80000002
lea ecx, [ebp - 0x70]
call fcn.00402527
test eax, eax
jne 0x41ce44
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push str.DefaultLanguage
push dword [ebp - 0x70]
call dword [0x470694]
test eax, eax
jne 0x41ce44
cmp dword [ebp - 0x68], 4
jne 0x41ce6e
push dword [ebp - 0x64]
lea eax, [ebp - 0x64]
push 0x45dcf0
push edi
push eax
call fcn.0042969d
add esp, 0x10
jmp 0x41ce6e
push str.cfgs_setup.cfg
push esi
call fcn.00424c19
pop ecx
pop ecx
push dword [ebp - 0x78]
lea eax, [ebp - 0x64]
push edi
push eax
push str.1033
push str.UILanguage
push str.Local
call dword [0x4708cc]
mov edi, dword [ebp - 0x80]
cmp edi, ebx
je 0x41ce97
cmp word [edi], bx
je 0x41ce97
push edi
call fcn.00425faa
pop ecx
test eax, eax
jne 0x41ce8e
mov dword [ebp - 0x74], 0x80004005
jmp 0x41cebd
push 0x5c
pop eax
mov word [esi], ax
push edi
jmp 0x41ceb2
cmp dword [ebp + 0x1ac], ebx
je 0x41cea8
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x78]
jmp 0x41ceb6
push 0x5c
pop eax
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
add esi, 2
push esi
call fcn.00424c47
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
call fcn.00401e83
mov ecx, dword [ebp + 0x19c]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004246a0
add ebp, 0x1a0
leave
ret
Function at 0x401334
Capabilities:
Check if file exists

Disassembly:
jmp 0x40683c
push ebp
lea ebp, [esp - 0x17b0]
mov eax, 0x1830
call fcn.004250e0
mov eax, dword [0x46c134]
xor eax, ebp
mov dword [ebp + 0x17ac], eax
mov eax, dword [ebp + 0x17bc]
push esi
push edi
mov edi, dword [ebp + 0x17b8]
mov dword [ebp - 0x80], ecx
xor ecx, ecx
mov dword [ebp - 0x7c], eax
cmp edi, ecx
je 0x4069c8
cmp word [edi], cx
je 0x4069c8
cmp eax, ecx
je 0x4069c8
cmp word [eax], cx
je 0x4069c8
xor eax, eax
mov esi, 0x40e
push esi
mov word [ebp + 0xf8c], ax
push ecx
lea eax, [ebp + 0xf8e]
push eax
mov dword [ebp - 0x78], 0x80004005
call fcn.004246b0
xor eax, eax
push esi
push eax
mov word [ebp + 0x139c], ax
lea eax, [ebp + 0x139e]
push eax
call fcn.004246b0
push dword [ebp + 0x17c0]
call fcn.00401cd5
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x4068eb
mov eax, 0x80004005
jmp 0x4069cd
push dword [ebp - 0x7c]
lea eax, [ebp + 0x139c]
push eax
call fcn.00424c47
lea eax, [ebp + 0x139c]
push eax
call fcn.00424686
add esp, 0xc
cmp word [ebp + eax*2 + 0x139a], 0x5c
je 0x406927
lea eax, [ebp + 0x139c]
push 0x45afcc
push eax
call fcn.00424c19
pop ecx
pop ecx
lea eax, [ebp + 0xf8c]
push edi
push eax
call fcn.00424c47
push dword [esi]
lea eax, [ebp + 0xf8c]
push eax
call fcn.00424c19
add esp, 0x10
lea eax, [ebp + 0xf8c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4069c3
push dword [esi + 8]
lea ecx, [ebp - 0x74]
call fcn.00401181
push dword [esi + 0xc]
lea ecx, [ebp + 0x78c]
call fcn.00401181
lea eax, [ebp - 0x74]
push eax
call fcn.00424686
pop ecx
test eax, eax
je 0x4069c3
lea eax, [ebp + 0x78c]
push eax
call fcn.00424686
pop ecx
test eax, eax
je 0x4069c3
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x139c]
push eax
call fcn.00424c19
pop ecx
pop ecx
push dword [esi + 4]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp + 0x78c]
push eax
lea eax, [ebp + 0x139c]
push eax
lea eax, [ebp + 0xf8c]
push eax
call fcn.00401172
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
jmp 0x4069cd
mov eax, 0x80070057
mov ecx, dword [ebp + 0x17ac]
pop edi
xor ecx, ebp
pop esi
call fcn.004246a0
add ebp, 0x17b0
leave
ret 0xc

Function at 0x40135c
Capabilities:
Set registry value

Disassembly:
jmp 0x408146
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [0x47065c]
ret 8
Function at 0x4016c7
Capabilities:
Delete registry value

Disassembly:
jmp 0x41dfde
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x46c134]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x14
mov eax, 0x45697e
call fcn.00425689
mov ebx, dword [ebp + 0x41c]
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
mov dword [ebp - 4], edi
push eax
mov byte [ebp - 4], 1
call fcn.004246b0
xor eax, eax
push esi
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push edi
push eax
call fcn.004246b0
add esp, 0x18
mov edi, 0x2001f
push edi
mov eax, 0x104
push ebx
mov esi, 0x80000000
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.00402527
test eax, eax
jne 0x41e0d6
lea eax, [ebp - 0x20]
push eax
mov ebx, 0x45af78
push ebx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.004012cb
test eax, eax
jne 0x41e0d6
push edi
lea eax, [ebp]
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.00402527
test eax, eax
jne 0x41e0d6
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x18]
call fcn.004012cb
test eax, eax
jne 0x41e0d6
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerDiscardablePostSetupShellNew
push 0x80000001
lea ecx, [ebp - 0x18]
call fcn.00402527
test eax, eax
jne 0x41e0d6
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x18]
call dword [0x470660]
lea ecx, [ebp - 0x18]
call fcn.00401e83
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004246a0
add ebp, 0x414
leave
ret

Function at 0x401744
Capabilities:
Get graphical window text

Disassembly:
jmp 0x422566
push ebp
lea ebp, [esp - 0x42c]
sub esp, 0x4ac
mov eax, dword [0x46c134]
xor eax, ebp
mov dword [ebp + 0x428], eax
push ebx
push esi
mov esi, dword [ebp + 0x434]
push edi
xor eax, eax
push 0x3fe
push eax
mov word [ebp + 0x28], ax
lea eax, [ebp + 0x2a]
push eax
mov edi, ecx
call fcn.004246b0
add esp, 0xc
push esi
lea ecx, [ebp - 0x20]
call fcn.00401ef6
push 0xff0000
push dword [ebp - 0x20]
call dword [0x470728]
push 1
push dword [ebp - 0x20]
call dword [0x47072c]
lea eax, [ebp - 0x7c]
push eax
push 0x5c
push 0x11
call dword [0x470740]
push eax
call dword [0x470718]
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 0x67], 1
call dword [0x47071c]
mov ebx, dword [0x470730]
push eax
push dword [ebp - 0x20]
call ebx
mov esi, dword [edi + 4]
mov dword [ebp - 0x80], eax
jmp 0x422630
push 0x200
lea eax, [ebp + 0x28]
push eax
push dword [esi + 4]
call dword [0x470b2c]
lea eax, [ebp + 0x28]
push eax
call fcn.00424686
pop ecx
push 0
lea ecx, [esi + 8]
push ecx
push eax
lea eax, [ebp + 0x28]
push eax
push dword [ebp - 0x20]
call dword [0x470ae8]
add esi, 0x18
cmp esi, dword [edi + 8]
jne 0x4225fd
push dword [ebp - 0x80]
push dword [ebp - 0x20]
call ebx
push eax
call dword [0x470720]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [0x470ad8]
mov ecx, dword [ebp + 0x428]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004246a0
add ebp, 0x42c
leave
ret 4
Function at 0x40186b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
jmp 0x4088d9
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x46c134]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
or ecx, 0x2001f
push ecx
push eax
push dword [esi]
xor edi, edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
call fcn.00402527
mov ebx, eax
cmp ebx, edi
je 0x408949
lea ecx, [ebp - 0x70]
call fcn.00401e83
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004246a0
add ebp, 0x19c
leave
ret 4
mov ebx, dword [0x470698]
jmp 0x408961
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040186b
cmp eax, edi
jne 0x408994
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], pe_nt_image_headers32
call ebx
test eax, eax
je 0x408951
lea ecx, [ebp - 0x70]
call fcn.00401e83
push dword [ebp - 0x78]
push dword [esi]
call dword [0x4706a0]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00401e83
mov eax, esi
jmp 0x40892f

Function at 0x401893
Capabilities:
Get common file path

Disassembly:
jmp 0x40aa07
push ebp
sub esp, 0x618
lea ebp, [esp - 4]
mov eax, dword [0x46c134]
xor eax, ebp
mov dword [ebp + 0x618], eax
push 0x24
mov eax, 0x45577e
call fcn.00425656
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0x208], ax
xor esi, esi
lea eax, [ebp + 0x20a]
push esi
push eax
call fcn.004246b0
xor eax, eax
push edi
mov word [ebp + 0x410], ax
lea eax, [ebp + 0x412]
push esi
push eax
call fcn.004246b0
xor eax, eax
push edi
mov word [ebp], ax
lea eax, [ebp + 2]
push esi
push eax
call fcn.004246b0
mov edi, dword [0x470a40]
add esp, 0x24
push esi
push 0x19
lea eax, [ebp + 0x410]
push eax
push esi
call edi
push esi
push 0x17
lea eax, [ebp]
push eax
push esi
call edi
push esi
push 0x10
lea eax, [ebp + 0x208]
push eax
push esi
call edi
lea ecx, [ebp - 0x30]
call fcn.00401db1
mov dword [ebp - 4], esi
cmp word [ebp + 0x410], si
je 0x40aac2
push esi
lea eax, [ebp + 0x410]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401695
cmp word [ebp + 0x208], si
je 0x40aadb
push esi
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401695
cmp word [ebp], si
je 0x40aaef
push 1
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401695
push esi
push esi
push esi
push 0x8000000
call dword [0x470a3c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004022d9
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x618]
xor ecx, ebp
call fcn.004246a0
add ebp, 0x61c
leave
ret