joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10087e66
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x10087e87
jl 0x10087e7e
test edi, edi
jne 0x10087e87
xor eax, eax
xor edx, edx
jmp 0x10087f48
cmp dword [ebx + 0x38], 0
je 0x10087e9c
push eax
push edi
push dword [ebp + 8]
call fcn.100565d0
jmp 0x10087f48
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10087ee3
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x10087ee3
cmp eax, edi
jb 0x10087ebd
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.10065810
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x10087ee9
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x10087f3d
mov ecx, ebx
call fcn.1008783a
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x10087f28
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1006dad8
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x10087f3d
jmp 0x10087efb
test edx, edx
je 0x10087f3d
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1006dad8
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x10088150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1008817d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1008817d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ed0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x25480202
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x33b80189
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x408340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp cl, byte [ebp - 0x3d]
mov eax, dword [ebp + 8]
mov ebx, eax
or al, 0x51
mov eax, dword [eax]
push edi
dec ebp
adc edx, dword [edx - 0x7f]
push 1
push eax
cmp byte [ebp + edi*8 - 0x3b7c0001], dl
adc al, 0x5d
xor edx, dword [eax + 0xa2a9090]
nop
nop
nop
nop
nop
Function at 0x642c53fd
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x642c9008]
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 0x642c545b
test byte [eax + 0x1c], 2
je 0x642c545b
cmp byte [eax + 0x19], 5
jb 0x642c545b
push dword [eax + 0x14]
mov edx, 0x642c18f0
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.642c202d
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 0x642c54aa
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c549e
test byte [eax + 0x1c], 2
je 0x642c549e
cmp byte [eax + 0x19], 2
jb 0x642c549e
push edi
push dword [eax + 0x14]
mov edx, 0x642c18f0
push dword [eax + 0x10]
push 0xb
pop ecx
call fcn.642c2051
movzx eax, di
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x642c54f4
lea eax, [ebp - 0x214]
mov edx, 0x105
push eax
mov ecx, ebx
call fcn.642c1ed2
mov edi, eax
test edi, edi
jns 0x642c54f1
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c549e
test byte [ecx + 0x1c], 2
je 0x642c549e
cmp byte [ecx + 0x19], 2
jb 0x642c549e
movzx eax, di
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xc
pop ecx
call fcn.642c52f6
jmp 0x642c549e
xor esi, esi
inc esi
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.642c79b0
leave
ret 4
Function at 0x642c550d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x642c9008]
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 0x642c56f6
push 1
xor eax, eax
mov ecx, 0x80000001
push 1
mov word [esi], ax
call fcn.642c6c84
mov edi, eax
test edi, edi
je 0x642c56f6
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x634]
push eax
push ebx
push 0x642c16c8
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 0x642c55cf
cmp ebx, 2
jne 0x642c56f6
mov edi, 0x642c16e4
jmp 0x642c5638
cmp dword [ebp - 0x634], 1
je 0x642c55e5
cmp dword [ebp - 0x634], 2
jne 0x642c56f6
and dword [ebp - 0x638], 0
lea eax, [ebp - 0x638]
mov ebx, 0x105
lea ecx, [ebp - 0x218]
push eax
mov edx, ebx
call fcn.642c52af
lea edi, [ebp - 0x218]
test eax, eax
js 0x642c5638
mov eax, dword [ebp - 0x638]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x21a], cx
je 0x642c5638
push 0x642c11dc
mov edx, ebx
mov ecx, edi
call fcn.642c1f07
test eax, eax
js 0x642c56ec
push ecx
push 5
lea edx, [ebp - 0x630]
pop ecx
call fcn.642d2c3b
test eax, eax
jne 0x642c5663
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x642c1718
call fcn.642c6933
pop ecx
pop ecx
jmp 0x642c56f6
lea eax, [ebp - 0x630]
mov ebx, 0x104
push eax
mov edx, ebx
mov ecx, esi
call fcn.642c1ed2
test eax, eax
js 0x642c56ec
push 0x5c
pop eax
cmp word [edi], ax
je 0x642c5696
push 0x642c11dc
mov edx, ebx
mov ecx, esi
call fcn.642c1f07
test eax, eax
js 0x642c56ec
push edi
mov edx, ebx
mov ecx, esi
call fcn.642c1f07
test eax, eax
js 0x642c56ec
lea eax, [ebp - 0x420]
push eax
push 0x642c1754
push 0
push 0
push 0x8005
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
test eax, eax
js 0x642c56ec
push 0x93d
push 0x642c1788
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
test eax, eax
js 0x642c56ec
mov ecx, esi
call fcn.642c6277
xor eax, eax
inc eax
jmp 0x642c56f8
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.642c79b0
leave
ret
Function at 0x642c6549
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 0x642c657f
test byte [eax + 0x1c], 2
je 0x642c657f
cmp byte [eax + 0x19], 5
jb 0x642c657f
push dword [eax + 0x14]
mov edx, esi
push dword [eax + 0x10]
push 0x17
pop ecx
call fcn.642c202d
push 0x25
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x642c65cd
mov ecx, ebx
call fcn.642c61c5
test eax, eax
jne 0x642c66ad
mov eax, dword [section..data]
cmp eax, edi
je 0x642c66ab
test byte [eax + 0x1c], 2
je 0x642c66ab
cmp byte [eax + 0x19], 2
jb 0x642c66ab
push dword [eax + 0x14]
mov edx, esi
push dword [eax + 0x10]
push 0x18
jmp 0x642c6653
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x642c661f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [section..data]
cmp ecx, edi
je 0x642c66ab
test byte [ecx + 0x1c], 2
je 0x642c66ab
cmp byte [ecx + 0x19], 2
jb 0x642c66ab
push eax
push dword [ecx + 0x14]
mov edx, 0x642c1914
push dword [ecx + 0x10]
push 0x19
pop ecx
call fcn.642c2051
jmp 0x642c66ab
inc esi
lea ecx, [esi + esi]
call fcn.642c506d
mov edi, eax
test edi, edi
jne 0x642c665b
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c66ab
test byte [eax + 0x1c], 2
je 0x642c66ab
cmp byte [eax + 0x19], 2
jb 0x642c66ab
push dword [eax + 0x14]
mov edx, 0x642c1914
push dword [eax + 0x10]
push 0x1a
pop ecx
call fcn.642c202d
jmp 0x642c66ab
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x642c6670
cmp eax, esi
ja 0x642c6670
mov eax, edi
jmp 0x642c66ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c66a4
test byte [ecx + 0x1c], 2
je 0x642c66a4
cmp byte [ecx + 0x19], 2
jb 0x642c66a4
push eax
push dword [ecx + 0x14]
mov edx, 0x642c1914
push dword [ecx + 0x10]
push 0x1b
pop ecx
call fcn.642c2051
mov ecx, edi
call fcn.642c50d9
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x642c66b7
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x642c9008]
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 0x642c6702
test byte [eax + 0x1c], 2
je 0x642c6702
cmp byte [eax + 0x19], 5
jb 0x642c6702
push dword [eax + 0x14]
mov edx, 0x642c1914
push dword [eax + 0x10]
push 0x27
pop ecx
call fcn.642c202d
test esi, esi
je 0x642c67b7
mov ecx, esi
xor edx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, dx
jne 0x642c6711
sub ecx, edi
sar ecx, 1
je 0x642c67b7
mov ecx, esi
mov eax, 0x642c1910
mov di, word [eax]
cmp di, word [ecx]
jne 0x642c6751
test di, di
je 0x642c6756
mov di, word [eax + 2]
cmp di, word [ecx + 2]
jne 0x642c6751
add eax, 4
add ecx, 4
test di, di
jne 0x642c672d
jmp 0x642c6756
sbb edx, edx
or edx, 1
test edx, edx
je 0x642c67b7
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x642c67a2
mov eax, dword [section..data]
cmp eax, ebx
je 0x642c67b3
test byte [eax + 0x1c], 2
je 0x642c67b3
cmp byte [eax + 0x19], 2
jb 0x642c67b3
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.642c2051
jmp 0x642c67b3
lea eax, [ebp - 0x24]
push esi
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x642c67b7
xor eax, eax
jmp 0x642c67ba
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.642c79b0
leave
ret

Function at 0x642c67cf
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 0x642c6806
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x642c6858
mov eax, dword [ebp - 4]
test eax, eax
je 0x642c6858
push edi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.642c7ed4
mov edi, eax
mov ebx, eax
pop ecx
test edi, edi
je 0x642c6857
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 0x642c6857
cmp word [edi], si
je 0x642c6857
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 0x642c6861
xor esi, esi
inc esi
test ebx, ebx
je 0x642c686c
push ebx
call fcn.642c7ec9
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x642c6933
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x642c9008]
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 [0x642c9390], esi
jne 0x642c6980
call fcn.642d2c3b
mov dword [0x642c9010], eax
mov dword [0x642c9390], 1
jmp 0x642c6985
mov eax, dword [0x642c9010]
test eax, eax
jle 0x642c6a04
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x804]
call fcn.642c6878
test eax, eax
js 0x642c6a04
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x642c69a8
sub ecx, edx
mov eax, 0x3fd
sar ecx, 1
cmp ecx, eax
jb 0x642c69c2
mov ecx, eax
push 0xa
pop edx
cmp word [ebp + ecx*2 - 0x806], dx
je 0x642c69f7
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 0x642c6a12
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.642c79b0
leave
ret
call fcn.642c7b0a
int3
Function at 0x642c6a1e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x642c9008]
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 0x642c6a7d
test byte [eax + 0x1c], bl
je 0x642c6a7d
cmp byte [eax + 0x19], 5
jb 0x642c6a7d
push dword [eax + 0x14]
mov edx, edi
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.642c202d
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x642c6ac9
mov eax, dword [section..data]
cmp eax, esi
je 0x642c6b1c
test byte [eax + 0x1c], bl
je 0x642c6b1c
cmp byte [eax + 0x19], bl
jb 0x642c6b1c
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.642c2051
jmp 0x642c6b1c
cmp dword [ebp - 0x118], ebx
je 0x642c6aef
mov eax, dword [section..data]
cmp eax, esi
je 0x642c6b1c
test byte [eax + 0x1c], bl
je 0x642c6b1c
cmp byte [eax + 0x19], 3
jb 0x642c6b1c
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xd
jmp 0x642c6b14
cmp dword [ebp - 0x124], 5
jae 0x642c6b20
mov eax, dword [section..data]
cmp eax, esi
je 0x642c6b1c
test byte [eax + 0x1c], bl
je 0x642c6b1c
cmp byte [eax + 0x19], 3
jb 0x642c6b1c
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xe
mov edx, edi
pop ecx
call fcn.642c202d
xor eax, eax
jmp 0x642c6b7b
mov eax, dword [ebp - 0x10]
test al, 0x40
je 0x642c6b39
xor eax, eax
cmp byte [ebp - 0xe], 1
setne al
dec eax
and eax, 0xffffffe0
add eax, 0x40
jmp 0x642c6b7b
test eax, 0x200
je 0x642c6b45
xor eax, eax
inc eax
jmp 0x642c6b7b
test bl, al
je 0x642c6b4d
push 8
jmp 0x642c6b7a
test al, al
jns 0x642c6b55
push 0x10
jmp 0x642c6b7a
test eax, 0x400
je 0x642c6b63
mov eax, 0x80
jmp 0x642c6b7b
mov cl, byte [ebp - 0xe]
cmp cl, 1
jne 0x642c6b6f
mov eax, ebx
jmp 0x642c6b7b
cmp cl, 3
je 0x642c6b78
cmp cl, bl
jne 0x642c6b1c
push 4
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.642c79b0
leave
ret
Function at 0x642c6d1b
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov eax, ecx
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push esi
lea ecx, [ebp - 8]
push ecx
push esi
push 0x642c1808
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, 0x80070057
test eax, eax
je 0x642c6d66
cmp eax, 2
jne 0x642c6d54
push eax
jmp 0x642c6d79
push eax
push 0x642c1a40
call fcn.642c6933
pop ecx
pop ecx
jmp 0x642c6e1c
cmp dword [ebp - 8], 1
jne 0x642c6e61
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x642c6d7d
push 0x20
pop ecx
mov dword [ebp - 4], ecx
mov eax, ecx
lea edi, [ecx + 2]
and eax, 1
add edi, eax
mov ecx, edi
call fcn.642c506d
mov esi, eax
test esi, esi
je 0x642c6e1c
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push 0x642c1808
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
mov word [edi + esi - 2], cx
test byte [ebp - 4], 1
je 0x642c6dc2
mov byte [edi + esi - 3], cl
test eax, eax
je 0x642c6e6a
cmp eax, 2
jne 0x642c6d54
shr edi, 1
jne 0x642c6dd7
mov eax, ebx
jmp 0x642c6de7
sub esp, 0xc
mov edx, edi
mov ecx, esi
call fcn.642c510b
test eax, eax
jns 0x642c6df2
push eax
push 0x642c1a80
jmp 0x642c6d5a
push dword [ebp - 4]
mov edi, 0x642c1808
push esi
push 1
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x642c6e6a
push eax
push edi
push 0x642c1ac0
call fcn.642c6933
add esp, 0xc
mov ecx, esi
call fcn.642c50d9
push 2
pop eax
mov ecx, eax
mov dword [ebp - 4], eax
call fcn.642c506d
mov esi, eax
test esi, esi
je 0x642c6e61
mov edx, dword [ebp - 4]
shr edx, 1
je 0x642c6e4d
sub esp, 0xc
mov ecx, esi
call fcn.642c510b
mov ebx, eax
test ebx, ebx
jns 0x642c6e6a
push ebx
push 0x642c1b04
call fcn.642c6933
pop ecx
pop ecx
mov ecx, esi
call fcn.642c50d9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, esi
jmp 0x642c6e63
Function at 0x642c6e74
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 0x642c6eb9
test byte [eax + 0x1c], bl
je 0x642c6eb9
cmp byte [eax + 0x19], 5
jb 0x642c6eb9
push dword [eax + 0x14]
mov edx, 0x642c1b44
push dword [eax + 0x10]
push 0xe
pop ecx
call fcn.642c202d
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 0x642c6f04
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x642c6f83
test byte [ecx + 0x1c], bl
je 0x642c6f83
cmp byte [ecx + 0x19], bl
jb 0x642c6f83
push esi
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xf
jmp 0x642c6f78
cmp dword [ebp - 4], 4
je 0x642c6f3a
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c6f33
test byte [eax + 0x1c], bl
je 0x642c6f33
cmp byte [eax + 0x19], bl
jb 0x642c6f33
push dword [eax + 0x14]
mov edx, 0x642c1b44
push dword [eax + 0x10]
push 0x10
pop ecx
call fcn.642c202d
mov esi, 0x3f1
jmp 0x642c6f83
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 0x642c6f83
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c6f83
test byte [eax + 0x1c], bl
je 0x642c6f83
cmp byte [eax + 0x19], bl
jb 0x642c6f83
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x11
mov edx, 0x642c1b44
pop ecx
call fcn.642c2051
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x642c6f92
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x642c9008]
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 0x642c6fd8
test byte [eax + 0x1c], 2
je 0x642c6fd8
cmp byte [eax + 0x19], 5
jb 0x642c6fd8
push dword [eax + 0x14]
mov edx, edi
push dword [eax + 0x10]
push 0xf
pop ecx
call fcn.642c202d
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 0x642c703e
mov eax, dword [section..data]
cmp eax, esi
je 0x642c703a
test byte [eax + 0x1c], 2
je 0x642c703a
cmp byte [eax + 0x19], 2
jb 0x642c703a
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.642c2051
xor eax, eax
jmp 0x642c7048
cmp dword [ebp - 0x11c], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.642c79b0
leave
ret
Function at 0x642c7c10
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x642c7c4e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x642c7c46
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x642c7c50
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x642c7c36
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x642c7d30
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x642c7d61
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x642c7d61
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x642c7d61
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x642cd175
Capabilities:
Encode data using xor

Disassembly:
call 0x642cd0ee
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x642cd11e
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x642cd13a
xor edx, 0
jmp 0x642cd145
xor edx, edx
jmp 0x642cd15c
jmp 0x642cd168
xor eax, eax
push 0x8427d7c0
call 0x642cd175
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x642cd1b1
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x642cd18a
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x642cd1c8
add eax, 0
jno 0x642cd1cd
add esi, 0
ret 0x10