joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64606cf5
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x646180b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
inc edi
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x64606d40
test dword [eax + 0x1c], 0x200
je 0x64606d40
cmp byte [eax + 0x19], 4
jb 0x64606d40
push dword [eax + 0x14]
mov edx, 0x64602d30
push dword [eax + 0x10]
push 0xd
pop ecx
call fcn.6460534c
mov ebx, 0x208
lea eax, [ebp - 0x210]
push ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x418]
push ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPath2W]
test eax, eax
jne 0x64606d8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x64606e04
lea eax, [ebp - 0x418]
push eax
push 0
push 0x646022f0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x64606d80
lea eax, [ebp - 0x418]
mov edx, ebx
push eax
mov ecx, esi
call fcn.646051c2
mov esi, eax
test esi, esi
jns 0x64606e11
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x64606df3
test dword [eax + 0x1c], 0x200
je 0x64606df3
cmp byte [eax + 0x19], 2
jb 0x64606df3
push esi
push 0x646020e4
push dword [eax + 0x14]
mov edx, 0x64602d30
push dword [eax + 0x10]
push 0xe
pop ecx
call fcn.6460539a
mov eax, esi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x64606e04
movzx esi, si
test esi, esi
je 0x64606e11
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.64616f60
leave
ret
Function at 0x6460d0ab
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push esi
mov esi, ecx
test edx, edx
jne 0x6460d0dc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x646184c4]
cmp eax, 0xc8
jbe 0x6460d0e7
mov eax, dword [esi + 0x1c]
push 0
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x34]
mov ecx, esi
call dword [0x6461939c]
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x646184c4], eax
pop esi
ret

Function at 0x6460de42
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x646180b0]
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 [0x6461800c]
cmp eax, 0x6461800c
je 0x6460dea0
test byte [eax + 0x1c], 2
je 0x6460dea0
cmp byte [eax + 0x19], 5
jb 0x6460dea0
push dword [eax + 0x14]
mov edx, 0x64603398
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.6460534c
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 0x6460deef
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x6460dee3
test byte [eax + 0x1c], 2
je 0x6460dee3
cmp byte [eax + 0x19], 2
jb 0x6460dee3
push edi
push dword [eax + 0x14]
mov edx, 0x64603398
push dword [eax + 0x10]
push 0xb
pop ecx
call fcn.64605370
movzx eax, di
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x6460df3e
lea eax, [ebp - 0x214]
mov edx, 0x105
push eax
mov ecx, ebx
call fcn.646051c2
mov edi, eax
test edi, edi
jns 0x6460df3b
mov ecx, dword [0x6461800c]
cmp ecx, 0x6461800c
je 0x6460dee3
test byte [ecx + 0x1c], 2
je 0x6460dee3
cmp byte [ecx + 0x19], 2
jb 0x6460dee3
movzx eax, di
mov edx, 0x64603398
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xc
pop ecx
call fcn.64605370
jmp 0x6460dee3
xor esi, esi
inc esi
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.64616f60
leave
ret 4
Function at 0x6460df5a
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 [0x646180b0]
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 0x6460e148
push 1
xor eax, eax
mov edx, 0x64603098
push 1
mov ecx, 0x80000001
mov word [esi], ax
call fcn.6460f8df
mov edi, eax
test edi, edi
je 0x6460e148
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x634]
push eax
push ebx
push 0x6460316c
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 0x6460e021
cmp ebx, 2
jne 0x6460e148
mov edi, 0x64603188
jmp 0x6460e08a
cmp dword [ebp - 0x634], 1
je 0x6460e037
cmp dword [ebp - 0x634], 2
jne 0x6460e148
and dword [ebp - 0x638], 0
lea eax, [ebp - 0x638]
mov ebx, 0x105
lea ecx, [ebp - 0x218]
push eax
mov edx, ebx
call fcn.6460dd14
lea edi, [ebp - 0x218]
test eax, eax
js 0x6460e08a
mov eax, dword [ebp - 0x638]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x21a], cx
je 0x6460e08a
push 0x64602100
mov edx, ebx
mov ecx, edi
call fcn.646051f7
test eax, eax
js 0x6460e13e
push ecx
push 5
lea edx, [ebp - 0x630]
pop ecx
call fcn.6460de42
test eax, eax
jne 0x6460e0b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x646031bc
call fcn.6460f585
pop ecx
pop ecx
jmp 0x6460e148
lea eax, [ebp - 0x630]
mov ebx, 0x104
push eax
mov edx, ebx
mov ecx, esi
call fcn.646051c2
test eax, eax
js 0x6460e13e
push 0x5c
pop eax
cmp word [edi], ax
je 0x6460e0e8
push 0x64602100
mov edx, ebx
mov ecx, esi
call fcn.646051f7
test eax, eax
js 0x6460e13e
push edi
mov edx, ebx
mov ecx, esi
call fcn.646051f7
test eax, eax
js 0x6460e13e
lea eax, [ebp - 0x420]
push eax
push 0x646031f8
push 0
push 0
push 0x8005
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
test eax, eax
js 0x6460e13e
push 0x93d
push 0x64603230
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
test eax, eax
js 0x6460e13e
mov ecx, esi
call fcn.6460eda0
xor eax, eax
inc eax
jmp 0x6460e14a
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.64616f60
leave
ret
Function at 0x6460f072
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [0x6461800c]
mov edi, 0x6461800c
mov esi, 0x64603438
cmp eax, edi
je 0x6460f0a8
test byte [eax + 0x1c], 2
je 0x6460f0a8
cmp byte [eax + 0x19], 5
jb 0x6460f0a8
push dword [eax + 0x14]
mov edx, esi
push dword [eax + 0x10]
push 0x17
pop ecx
call fcn.6460534c
push 0x25
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x6460f0f6
mov ecx, ebx
call fcn.6460ec38
test eax, eax
jne 0x6460f1d6
mov eax, dword [0x6461800c]
cmp eax, edi
je 0x6460f1d4
test byte [eax + 0x1c], 2
je 0x6460f1d4
cmp byte [eax + 0x19], 2
jb 0x6460f1d4
push dword [eax + 0x14]
mov edx, esi
push dword [eax + 0x10]
push 0x18
jmp 0x6460f17c
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x6460f148
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x6461800c]
cmp ecx, edi
je 0x6460f1d4
test byte [ecx + 0x1c], 2
je 0x6460f1d4
cmp byte [ecx + 0x19], 2
jb 0x6460f1d4
push eax
push dword [ecx + 0x14]
mov edx, 0x64603438
push dword [ecx + 0x10]
push 0x19
pop ecx
call fcn.64605370
jmp 0x6460f1d4
inc esi
lea ecx, [esi + esi]
call fcn.6460d35d
mov edi, eax
test edi, edi
jne 0x6460f184
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x6460f1d4
test byte [eax + 0x1c], 2
je 0x6460f1d4
cmp byte [eax + 0x19], 2
jb 0x6460f1d4
push dword [eax + 0x14]
mov edx, 0x64603438
push dword [eax + 0x10]
push 0x1a
pop ecx
call fcn.6460534c
jmp 0x6460f1d4
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x6460f199
cmp eax, esi
ja 0x6460f199
mov eax, edi
jmp 0x6460f1d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x6461800c]
cmp ecx, 0x6461800c
je 0x6460f1cd
test byte [ecx + 0x1c], 2
je 0x6460f1cd
cmp byte [ecx + 0x19], 2
jb 0x6460f1cd
push eax
push dword [ecx + 0x14]
mov edx, 0x64603438
push dword [ecx + 0x10]
push 0x1b
pop ecx
call fcn.64605370
mov ecx, edi
call fcn.6460d3c9
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x6460f2f1
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x646180b0]
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 [0x6461800c]
mov ebx, 0x6461800c
cmp eax, ebx
je 0x6460f33c
test byte [eax + 0x1c], 2
je 0x6460f33c
cmp byte [eax + 0x19], 5
jb 0x6460f33c
push dword [eax + 0x14]
mov edx, 0x64603438
push dword [eax + 0x10]
push 0x27
pop ecx
call fcn.6460534c
test esi, esi
je 0x6460f3f1
mov ecx, esi
xor edx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, dx
jne 0x6460f34b
sub ecx, edi
sar ecx, 1
je 0x6460f3f1
mov ecx, esi
mov eax, 0x64603434
mov di, word [eax]
cmp di, word [ecx]
jne 0x6460f38b
test di, di
je 0x6460f390
mov di, word [eax + 2]
cmp di, word [ecx + 2]
jne 0x6460f38b
add eax, 4
add ecx, 4
test di, di
jne 0x6460f367
jmp 0x6460f390
sbb edx, edx
or edx, 1
test edx, edx
je 0x6460f3f1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x6460f3dc
mov eax, dword [0x6461800c]
cmp eax, ebx
je 0x6460f3ed
test byte [eax + 0x1c], 2
je 0x6460f3ed
cmp byte [eax + 0x19], 2
jb 0x6460f3ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x6461800c]
mov edx, 0x64603438
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x28
pop ecx
call fcn.64605370
jmp 0x6460f3ed
lea eax, [ebp - 0x24]
push esi
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x6460f3f1
xor eax, eax
jmp 0x6460f3f4
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.64616f60
leave
ret

Function at 0x6460f409
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 8
mov dword [ebp - 4], esi
mov ebx, esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetUserPreferredUILanguages]
test eax, eax
jne 0x6460f440
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x6460f492
mov eax, dword [ebp - 4]
test eax, eax
je 0x6460f492
push edi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.64617709
mov edi, eax
mov ebx, eax
pop ecx
test edi, edi
je 0x6460f491
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetUserPreferredUILanguages]
test eax, eax
je 0x6460f491
cmp word [edi], si
je 0x6460f491
push 2
lea eax, [ebp - 0xc]
push eax
push 0x20000070
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
pop edi
cmp dword [ebp - 0xc], 1
jne 0x6460f49b
xor esi, esi
inc esi
test ebx, ebx
je 0x6460f4a7
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x6460f515
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x64603274
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x6460f540
xor eax, eax
leave
ret
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x64603448
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6460f56d
cmp dword [ebp - 0x10], 4
je 0x6460f571
and dword [ebp - 8], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x6460f585
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x646180b0]
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 [0x646184b8], esi
jne 0x6460f5d2
call fcn.6460f515
mov dword [0x646180cc], eax
mov dword [0x646184b8], 1
jmp 0x6460f5d7
mov eax, dword [0x646180cc]
test eax, eax
jle 0x6460f65f
lea eax, [ebp + 0xc]
mov edx, 0x400
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x804]
call fcn.6460f4b3
test eax, eax
js 0x6460f65f
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x6460f603
sub ecx, edx
mov eax, 0x3fd
sar ecx, 1
cmp ecx, eax
jb 0x6460f61d
mov ecx, eax
push 0xa
pop edx
cmp word [ebp + ecx*2 - 0x806], dx
je 0x6460f652
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 0x6460f66d
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.64616f60
leave
ret
call fcn.646170ba
int3
Function at 0x6460f679
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x646180b0]
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 [0x6461800c]
mov esi, 0x6461800c
mov edi, 0x64603488
push 2
pop ebx
cmp eax, esi
je 0x6460f6d8
test byte [eax + 0x1c], bl
je 0x6460f6d8
cmp byte [eax + 0x19], 5
jb 0x6460f6d8
push dword [eax + 0x14]
mov edx, edi
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.6460534c
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x6460f724
mov eax, dword [0x6461800c]
cmp eax, esi
je 0x6460f777
test byte [eax + 0x1c], bl
je 0x6460f777
cmp byte [eax + 0x19], bl
jb 0x6460f777
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x6461800c]
mov edx, edi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xc
pop ecx
call fcn.64605370
jmp 0x6460f777
cmp dword [ebp - 0x118], ebx
je 0x6460f74a
mov eax, dword [0x6461800c]
cmp eax, esi
je 0x6460f777
test byte [eax + 0x1c], bl
je 0x6460f777
cmp byte [eax + 0x19], 3
jb 0x6460f777
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xd
jmp 0x6460f76f
cmp dword [ebp - 0x124], 5
jae 0x6460f77b
mov eax, dword [0x6461800c]
cmp eax, esi
je 0x6460f777
test byte [eax + 0x1c], bl
je 0x6460f777
cmp byte [eax + 0x19], 3
jb 0x6460f777
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xe
mov edx, edi
pop ecx
call fcn.6460534c
xor eax, eax
jmp 0x6460f7d6
mov eax, dword [ebp - 0x10]
test al, 0x40
je 0x6460f794
xor eax, eax
cmp byte [ebp - 0xe], 1
setne al
dec eax
and eax, 0xffffffe0
add eax, 0x40
jmp 0x6460f7d6
test eax, 0x200
je 0x6460f7a0
xor eax, eax
inc eax
jmp 0x6460f7d6
test bl, al
je 0x6460f7a8
push 8
jmp 0x6460f7d5
test al, al
jns 0x6460f7b0
push 0x10
jmp 0x6460f7d5
test eax, 0x400
je 0x6460f7be
mov eax, 0x80
jmp 0x6460f7d6
mov cl, byte [ebp - 0xe]
cmp cl, 1
jne 0x6460f7ca
mov eax, ebx
jmp 0x6460f7d6
cmp cl, 3
je 0x6460f7d3
cmp cl, bl
jne 0x6460f777
push 4
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.64616f60
leave
ret
Function at 0x6460fbb1
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 [0x6461800c]
push 2
pop ebx
cmp eax, 0x6461800c
je 0x6460fbf6
test byte [eax + 0x1c], bl
je 0x6460fbf6
cmp byte [eax + 0x19], 5
jb 0x6460fbf6
push dword [eax + 0x14]
mov edx, 0x646037a4
push dword [eax + 0x10]
push 0xe
pop ecx
call fcn.6460534c
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x64603460
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x6460fc41
mov ecx, dword [0x6461800c]
cmp ecx, 0x6461800c
je 0x6460fcc0
test byte [ecx + 0x1c], bl
je 0x6460fcc0
cmp byte [ecx + 0x19], bl
jb 0x6460fcc0
push esi
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xf
jmp 0x6460fcb5
cmp dword [ebp - 4], 4
je 0x6460fc77
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x6460fc70
test byte [eax + 0x1c], bl
je 0x6460fc70
cmp byte [eax + 0x19], bl
jb 0x6460fc70
push dword [eax + 0x14]
mov edx, 0x646037a4
push dword [eax + 0x10]
push 0x10
pop ecx
call fcn.6460534c
mov esi, 0x3f1
jmp 0x6460fcc0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push 0x64603460
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x6460fcc0
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x6460fcc0
test byte [eax + 0x1c], bl
je 0x6460fcc0
cmp byte [eax + 0x19], bl
jb 0x6460fcc0
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x11
mov edx, 0x646037a4
pop ecx
call fcn.64605370
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x6460fccf
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x646180b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, dword [0x6461800c]
mov esi, 0x6461800c
mov edi, 0x646037b4
cmp eax, esi
je 0x6460fd15
test byte [eax + 0x1c], 2
je 0x6460fd15
cmp byte [eax + 0x19], 5
jb 0x6460fd15
push dword [eax + 0x14]
mov edx, edi
push dword [eax + 0x10]
push 0xf
pop ecx
call fcn.6460534c
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 0x6460fd7b
mov eax, dword [0x6461800c]
cmp eax, esi
je 0x6460fd77
test byte [eax + 0x1c], 2
je 0x6460fd77
cmp byte [eax + 0x19], 2
jb 0x6460fd77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x6461800c]
mov edx, edi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x10
pop ecx
call fcn.64605370
xor eax, eax
jmp 0x6460fd85
cmp dword [ebp - 0x11c], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.64616f60
leave
ret
Function at 0x6461017f
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
push ecx
mov edi, edx
xor eax, eax
push ecx
push ebx
test edi, edi
mov dword [esi], ebx
push 3
setne al
mov dword [esi + 4], ebx
neg edx
mov dword [esi + 8], ebx
push ecx
push eax
sbb edx, edx
mov eax, 0xc0000000
and edx, eax
add edx, eax
call fcn.6461027f
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x646101c1
xor eax, eax
jmp 0x6461022e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
add eax, dword [ebp + 8]
push ebx
push eax
xor eax, eax
test edi, edi
push ebx
sete al
lea eax, [eax*2 + 2]
push eax
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
jne 0x646101fd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x646101bd
xor eax, eax
test edi, edi
push ebx
push ebx
setne al
push ebx
push ebx
lea eax, [eax*2 + 2]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi + 8], eax
test eax, eax
jne 0x6461022b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 4]
jmp 0x646101f5
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x646106a6
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
inc esi
push edi
mov edi, ecx
test ebx, ebx
je 0x646107fb
test edi, edi
je 0x646107fb
mov eax, dword [ebp + 8]
test eax, eax
je 0x646107fb
movzx ecx, word [eax + 2]
dec ecx
sub ecx, esi
je 0x646107ae
sub ecx, esi
je 0x64610771
dec ecx
sub ecx, esi
je 0x64610737
mov ecx, dword [eax + 8]
cmp dword [eax + 4], esi
je 0x646107b7
lea eax, [ebp - 4]
push eax
push ecx
push 4
pop ecx
call fcn.64610647
test eax, eax
je 0x646107f7
mov eax, dword [edi + 0x634]
mov ecx, dword [ebp - 4]
sub eax, 4
cmp ecx, eax
ja 0x646107f5
add ecx, dword [edi + 8]
cmp ecx, dword [edi + 8]
jae 0x646107e4
push 0x64603a70
jmp 0x646107ef
lea ecx, [ebp - 4]
push ecx
push dword [eax + 8]
push 4
pop ecx
call fcn.64610647
test eax, eax
je 0x646107f7
mov eax, dword [edi + 0x634]
mov ecx, dword [ebp - 4]
sub eax, 4
cmp ecx, eax
ja 0x646107f5
add ecx, dword [edi + 8]
cmp ecx, dword [edi + 8]
jae 0x646107e4
push 0x64603968
jmp 0x646107ef
mov ecx, dword [eax + 8]
cmp dword [eax + 4], esi
je 0x646107b7
lea eax, [ebp - 4]
push eax
push ecx
push 2
pop ecx
call fcn.64610647
test eax, eax
je 0x646107f7
mov eax, dword [edi + 0x634]
mov ecx, dword [ebp - 4]
sub eax, 2
cmp ecx, eax
ja 0x646107f5
add ecx, dword [edi + 8]
cmp ecx, dword [edi + 8]
jb 0x646107a7
movzx eax, word [ecx]
jmp 0x646107e6
push 0x646038e8
jmp 0x646107ef
cmp dword [eax + 4], 4
mov ecx, dword [eax + 8]
jae 0x646107bb
mov dword [ebx], ecx
jmp 0x646107f7
lea eax, [ebp - 4]
push eax
push ecx
push 4
pop ecx
call fcn.64610647
test eax, eax
je 0x646107f7
mov eax, dword [edi + 0x634]
mov ecx, dword [ebp - 4]
sub eax, 4
cmp ecx, eax
ja 0x646107f5
add ecx, dword [edi + 8]
cmp ecx, dword [edi + 8]
jb 0x646107ea
mov eax, dword [ecx]
mov dword [ebx], eax
jmp 0x646107f7
push 0x646039f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor esi, esi
mov eax, esi
jmp 0x646107fd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x6461080a
Capabilities:
Delete file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6461800c]
cmp eax, 0x6461800c
je 0x6461083f
test byte [eax + 0x1c], 2
je 0x6461083f
cmp byte [eax + 0x19], 5
jb 0x6461083f
push dword [eax + 0x14]
mov edx, 0x64603dd0
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.6460534c
mov esi, 0x654
mov ecx, esi
call fcn.6460d35d
mov ebx, eax
test ebx, ebx
jne 0x64610858
xor eax, eax
jmp 0x6461093a
push esi
xor edi, edi
push edi
push ebx
call sub.msvcrt.dll_memset
or dword [ebx], 0xffffffff
lea esi, [ebx + 0x348]
add esp, 0xc
mov dword [ebx + 0xc], edi
mov ecx, 0x4949
mov dword [ebx + 0x600], edi
mov word [ebx + 0x220], cx
mov dword [ebx + 0x604], 0x20
push 0x2a
pop eax
push 4
mov word [ebx + 0x222], ax
pop eax
push 0x288
mov dword [ebx + 0x338], eax
mov dword [ebx + 0x340], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebx + 0x5f0], eax
mov dword [ebx + 0x620], 1
push esi
mov dword [ebx + 0x648], 0xc4
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebx + 0x5d4], esi
cmp dword [ebx], 0xffffffff
lea eax, [ebx + 0x420]
mov dword [ebx + 0x5d0], eax
lea edi, [ebx + 0x228]
mov dword [ebx + 0x608], eax
mov esi, 0x64603cc8
push 0x41
pop ecx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
je 0x64610938
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebx + 0x220]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x64610938
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, ebx
call fcn.6460d3c9
jmp 0x64610851
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc