joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x170]
test ecx, ecx
je 0x404b18
call fcn.0042fcd1
mov ecx, esi
pop esi
jmp fcn.004425e1

Function at 0x404c10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x4b02dc]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
mov esi, dword [ebp + 0x90]
push edi
push esi
mov dword [ebp - 0x80], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404ca0
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.0045fc20
mov esi, dword [sym.imp.USER32.dll_GetKeyboardState]
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_keybd_event]
test eax, eax
je 0x404c7d
test byte [ebp - 0x6a], 0x80
jne 0x404c7d
push ebx
push 1
push ebx
push 0x12
call edi
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [ebp - 0x7c]
push eax
call esi
test eax, eax
je 0x404cb5
test byte [ebp - 0x6a], 0x80
jne 0x404cb5
push ebx
push 3
push ebx
push 0x12
call edi
jmp 0x404cb5
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov ecx, dword [ebp + 0x84]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004602c7
add ebp, 0x88
leave
ret 4

Function at 0x404fad
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4b02dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40500c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x405012
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x10], ebx
je 0x405020
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.004602c7
leave
ret
Function at 0x40a7f9
Capabilities:
Identify system language via api

Disassembly:
push 8
mov eax, 0x485762
call fcn.004602d6
and dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004036e3
and dword [ebp - 4], 0
xor esi, esi
inc esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
test eax, eax
je 0x40a98c
mov ecx, 0x140c
cmp eax, ecx
jg 0x40a8f4
je 0x40a892
mov ecx, 0x816
cmp eax, ecx
jg 0x40a8a6
je 0x40a89c
mov ecx, 0x416
cmp eax, ecx
jg 0x40a87a
je 0x40a89c
sub eax, 0x407
je 0x40a8d4
sub eax, 3
je 0x40a97e
dec eax
dec eax
je 0x40a892
sub eax, 5
jne 0x40a977
push 0x489898
jmp 0x40a983
sub eax, 0x807
je 0x40a8d4
sub eax, 3
je 0x40a97e
dec eax
dec eax
jne 0x40a977
push 0x489894
jmp 0x40a983
push 0x489890
jmp 0x40a983
mov ecx, 0x100a
cmp eax, ecx
jg 0x40a8de
je 0x40a97e
sub eax, 0xc07
je 0x40a8d4
sub eax, 3
je 0x40a97e
dec eax
dec eax
je 0x40a892
sub eax, 0x3fb
jne 0x40a977
push 0x48988c
jmp 0x40a983
sub eax, 0x100c
je 0x40a892
sub eax, 0x3fb
je 0x40a8d4
sub eax, 3
jmp 0x40a975
mov ecx, 0x380a
cmp eax, ecx
jg 0x40a93b
je 0x40a97e
mov ecx, 0x280a
cmp eax, ecx
jg 0x40a926
je 0x40a97e
cmp eax, 0x180a
je 0x40a97e
cmp eax, 0x1c0a
je 0x40a97e
cmp eax, 0x200a
je 0x40a97e
cmp eax, 0x240a
jmp 0x40a975
cmp eax, 0x2c0a
je 0x40a97e
cmp eax, 0x300a
je 0x40a97e
cmp eax, 0x340a
jmp 0x40a975
mov ecx, 0x4c0a
cmp eax, ecx
jg 0x40a962
je 0x40a97e
cmp eax, 0x3c0a
je 0x40a97e
cmp eax, 0x400a
je 0x40a97e
cmp eax, 0x440a
je 0x40a97e
cmp eax, 0x480a
jmp 0x40a975
cmp eax, 0x500a
je 0x40a97e
cmp eax, 0x540a
je 0x40a97e
cmp eax, 0x580a
je 0x40a97e
push 0x489888
jmp 0x40a983
push 0x489884
mov ecx, edi
call fcn.00403a4b
jmp 0x40a9b2
lea eax, [ebp - 0x14]
push 0x95
push eax
call fcn.00425b7d
pop ecx
pop ecx
push eax
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.004039fe
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401240
mov eax, edi
call fcn.004603ae
ret 4
Function at 0x425610
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4b02dc]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
mov dword [ebp - 0x80], eax
mov eax, dword [0x4b1974]
xor ebx, ebx
mov dword [ebp - 0x78], ebx
cmp dword [eax - 0xc], ebx
jne 0x425768
push esi
push edi
push 0x100
lea eax, [ebp - 0x6c]
push eax
push ebx
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
mov esi, 0x4b1980
cmp edi, ebx
je 0x42575b
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
push edi
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x6c]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.VarFileInfoTranslation
lea eax, [ebp + 0x94]
push eax
call edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x94]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4256f4
cmp dword [ebp - 0x74], ebx
je 0x4256f4
mov eax, dword [ebp - 0x70]
cmp eax, ebx
je 0x4256f4
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str._04x_04x
push esi
call fcn.00462c72
add esp, 0x10
jmp 0x4256fc
push str.041904b0
push esi
call edi
push esi
lea eax, [ebp + 0x94]
push str.StringFileInfo_s_
push eax
call fcn.00462c72
add esp, 0xc
push 0x49153c
lea eax, [ebp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x94]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x425753
cmp dword [ebp - 0x74], ebx
je 0x425753
cmp dword [ebp - 0x70], ebx
je 0x425753
push dword [ebp - 0x70]
jmp 0x425758
push str.bootstrapper
push esi
call edi
push esi
mov ecx, 0x4b1974
call fcn.00403a4b
pop edi
pop esi
mov ecx, dword [ebp - 0x80]
push 0x4b1974
call fcn.004036f7
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
pop ebx
call fcn.004602c7
add ebp, 0x198
leave
ret
Function at 0x4258d9
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x94
lea ebp, [esp - 4]
mov eax, dword [0x4b02dc]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 8
mov eax, 0x4813d0
call fcn.004602d6
mov ebx, dword [ebp + 0xa0]
xor edi, edi
push str.Unknown
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], edi
call fcn.00404279
push 0x94
lea eax, [ebp]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.0045fc20
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [ebp], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp + 4], 5
jne 0x425967
cmp dword [ebp + 8], 1
jne 0x42595a
push str.WinXP
jmp 0x425991
cmp dword [ebp + 8], 2
jne 0x425998
push str.WinXP_64
jmp 0x425991
cmp dword [ebp + 4], 6
jne 0x425998
cmp dword [ebp + 8], edi
jne 0x425979
push str.WinVista
jmp 0x425991
cmp dword [ebp + 8], 1
jne 0x425986
push str.Win7
jmp 0x425991
cmp dword [ebp + 8], 2
jne 0x425998
push str.Win8
mov ecx, ebx
call fcn.00403a4b
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004602c7
add ebp, 0x98
leave
ret
Function at 0x427f84
Capabilities:
Print debug messages

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4b02dc]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x94
mov eax, 0x481b1f
call fcn.004602d6
lea eax, [ebp + 0x810]
push eax
push dword [ebp + 0x80c]
mov esi, 0x800
lea eax, [ebp]
push esi
push eax
call fcn.00463367
add esp, 0x10
call fcn.0043deb6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x427fe4
push 0x80004005
call fcn.00403089
mov edx, dword [eax]
push 1
push esi
mov ecx, eax
call dword [edx]
test eax, eax
jne 0x427ff6
call fcn.0040322d
lea edi, [eax + 0x10]
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
call fcn.004031bb
push esi
lea eax, [ebp]
push eax
push esi
push edi
call fcn.0045fb46
add esp, 0x10
and dword [ebp - 4], 0
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [0x4b1957], 0
je 0x428099
lea eax, [ebp - 0x10]
push eax
call fcn.0042d0b4
mov dword [esp], str._log_file.txt
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.00403ad2
add esp, 0xc
mov eax, dword [eax]
push 1
push 0x40
push 0xa
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 2
call fcn.00402de9
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401240
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.00401240
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041178c
pop ecx
pop ecx
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0
call fcn.00402c9d
lea ecx, [edi - 0x10]
call fcn.00401240
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004602c7
add ebp, 0x804
leave
ret
Function at 0x42c5ed
Capabilities:
Create directory
Download url
Receive data

Disassembly:
push 0xc
mov eax, 0x4826b4
call fcn.004602d6
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x20], eax
call fcn.0043deb6
push eax
lea ecx, [ebp + 8]
call fcn.0042debc
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0xc]
xor ebx, ebx
cmp dword [ecx - 0xc], ebx
mov dword [ebp - 4], ebx
jg 0x42c66a
push dword [eax + 4]
lea eax, [ebp - 0x14]
push eax
call fcn.0042d199
mov eax, dword [eax]
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 8]
push 0x5c
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.0042d314
add esp, 0x18
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004039fe
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401240
jmp 0x42c68a
mov eax, dword [eax + 8]
push 0x5c
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042d314
add esp, 0x10
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.004039fe
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401240
mov eax, dword [esi + 8]
mov eax, dword [eax + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push eax
call edi
mov eax, dword [esi + 8]
add eax, 8
push eax
lea ecx, [ebp - 0x10]
call fcn.004036f7
mov ecx, dword [esi + 8]
push ebx
push 0x491528
add ecx, 0xc
mov byte [ebp - 4], 4
call fcn.0040364d
cmp eax, 0xffffffff
jle 0x42c708
mov ecx, dword [esi + 8]
push eax
lea eax, [ebp - 0x14]
push eax
add ecx, 0xc
call fcn.00407d84
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 5
call fcn.004038fe
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.00401240
push ebx
push dword [ebp - 0x10]
call edi
mov eax, dword [esi + 8]
add eax, 4
push eax
lea ecx, [ebp - 0x14]
call fcn.004036f7
mov edi, dword [ebp - 0x14]
push edi
mov byte [ebp - 4], 6
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push esi
mov esi, dword [ebp + 8]
push ebx
push esi
push edi
push ebx
call sub.urlmon.dll_URLDownloadToFileA
cmp eax, ebx
jge 0x42c747
mov dword [ebp - 0x18], eax
push 0x4a4928
lea eax, [ebp - 0x18]
push eax
call fcn.0045fe07
lea ecx, [edi - 0x10]
call fcn.00401240
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401240
lea ecx, [esi - 0x10]
call fcn.00401240
call fcn.004603ae
ret 4

Function at 0x42c993
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42c9d0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 1
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42c9d0
xor eax, eax
leave
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x42c9e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xa4
mov eax, dword [0x4b02dc]
xor eax, ebp
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x70]
mov edx, dword [ebp + 0x74]
push edi
mov edi, dword [ebp + 0x78]
test eax, eax
jne 0x42ca18
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x42ca2c
push ebx
lea ebx, [ebp - 0x38]
push ebx
or eax, 1
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop ebx
test eax, eax
je 0x42ca34
xor eax, eax
jmp 0x42ca67
test edi, edi
je 0x42ca59
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push edi
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0x96
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42ca30
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
pop edi
call fcn.004602c7
add ebp, 0x68
leave
ret
Function at 0x42cdc0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x4b02dc]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x44
mov eax, 0x482806
call fcn.00460309
mov ecx, dword [ebp + 0x10c]
mov eax, dword [ebp + 0x118]
mov esi, dword [ebp + 0x110]
mov edi, dword [ebp + 0x114]
xor ebx, ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], ebx
call fcn.004036e3
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x11c]
cmp eax, ebx
jne 0x42ce2a
lea eax, [ebp - 0x14]
push eax
push 0x20019
jmp 0x42ce34
lea ecx, [ebp - 0x14]
push ecx
or eax, 0x20019
push eax
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x42cef6
push 0xfe
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.0045fc20
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x30], 0xff
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x42ceed
push dword [ebp - 0x18]
call fcn.004639ad
pop ecx
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x42cee6
cmp dword [ebp - 0x24], 1
jne 0x42cee6
mov ecx, dword [ebp - 0x20]
push edi
call fcn.00403b83
push edi
call fcn.0045fe53
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.004602c7
add ebp, 0x104
leave
ret

Function at 0x42d0b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4b02dc]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x110], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0045fc20
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10c]
push eax
mov ecx, edi
call fcn.00404279
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004602c7
leave
ret
Function at 0x42d116
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4b02dc]
xor eax, ebp
mov dword [ebp + 0x8c], eax
and dword [ebp - 0x80], 0
push esi
mov esi, dword [ebp + 0x98]
push 0x105
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0045fc20
lea eax, [ebp - 0x80]
push eax
call fcn.0042d0b4
add esp, 0x10
lea ecx, [ebp - 0x7c]
push ecx
push 0
push 0x492830
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.00401240
lea eax, [ebp - 0x7c]
push eax
mov ecx, esi
call fcn.00404279
mov ecx, dword [ebp + 0x8c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004602c7
add ebp, 0x90
leave
ret

Function at 0x42d41c
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x318
lea ebp, [esp - 4]
mov eax, dword [0x4b02dc]
xor eax, ebp
mov dword [ebp + 0x318], eax
push 0x10
mov eax, 0x4828f9
call fcn.004602d6
mov eax, dword [ebp + 0x328]
and dword [ebp - 4], 0
mov edi, dword [ebp + 0x324]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x1c], edi
call fcn.0042d3de
mov esi, 0x105
push esi
xor ebx, ebx
lea eax, [ebp + 0x108]
push 0
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0045fc20
add esp, 0x10
push esi
lea eax, [ebp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
lea eax, [ebp]
push 0
push eax
call fcn.0045fc20
add esp, 0xc
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp + 0x210]
push 0
push eax
call fcn.0045fc20
add esp, 0xc
lea eax, [ebp + 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00404279
push dword [ebp - 0x10]
mov ecx, edi
push str.APPPATH
mov dword [ebp - 0x14], ebx
call fcn.00407be0
lea eax, [ebp + 0x108]
push eax
push str.SYSTEMPATH
mov ecx, edi
call fcn.00407be0
lea eax, [ebp]
push eax
push str.WINDOWSPATH
mov ecx, edi
call fcn.00407be0
lea eax, [ebp + 0x210]
push eax
push str.TEMPPATH
mov ecx, edi
call fcn.00407be0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401240
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 + 0x318]
xor ecx, ebp
call fcn.004602c7
add ebp, 0x31c
leave
ret
Function at 0x42d6a4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x4b02dc]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x44
mov eax, 0x48296d
call fcn.004602d6
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0xd], 0
call fcn.00404279
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
mov ebx, 0x20019
push ebx
push 0
push dword [ebp - 0x1c]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
test eax, eax
jne 0x42d7ca
push 0xfe
push eax
mov byte [ebp], al
lea eax, [ebp + 1]
push eax
call fcn.0045fc20
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x30], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x20], 1
jbe 0x42d761
mov byte [ebp - 0xd], 0
jmp 0x42d7c1
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v1.1.4322
lea ecx, [ebp - 0x14]
call fcn.00404279
lea eax, [ebp - 0x24]
push eax
push ebx
xor ebx, ebx
push ebx
push dword [ebp - 0x14]
push edi
call esi
test eax, eax
jne 0x42d7b6
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push 0x4928c0
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42d7ad
cmp dword [ebp - 0x28], 1
je 0x42d7ad
mov byte [ebp - 0xd], 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401240
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401240
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.004602c7
add ebp, 0x104
leave
ret

Function at 0x42d900
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x4829e8
call fcn.004602d6
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.004036f7
push str..
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00403b83
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.004036f7
call fcn.0042d7fb
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401240
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401240
call fcn.004603ae
ret