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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d906
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4fd11c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x411acc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x411acc
call fcn.00401244
mov esi, eax
jmp 0x411bbf
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x411aef
call fcn.00401244
jmp 0x411bb2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x411b0d
call fcn.00401244
jmp 0x411bb2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x411b2e
mov esi, 0x8007000e
jmp 0x411bb4
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x418]
call fcn.00401e8d
mov dword [ebp - 4], 1
jmp 0x411b66
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x411b77
mov esi, 0x8007000e
jmp 0x411bb4
push esi
push eax
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x411b92
call fcn.00401244
jmp 0x411bb2
xor edx, edx
mov eax, dword [ebp - 0x418]
mov word [eax + ecx*2], dx
push dword [ebp + 0x14]
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00401b90
mov esi, eax
test edi, edi
je 0x411bbf
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x411bdc
lea ecx, [ebp - 0x418]
call fcn.0040158c
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044c53d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4193b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ee95
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4fd11c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 1
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov byte [ebp - 4], 2
lea esi, [edi + 0x24]
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041a8d0
mov dword [esi], eax
mov byte [ebp - 4], 7
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov byte [ebp - 4], 8
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov byte [ebp - 4], 9
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov byte [ebp - 4], 0xa
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41e530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f7f0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4fd11c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [0x4fd0e8]
mov ecx, 0x4fd0e8
mov dword [ebp - 0x34], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 1
mov dword [esi], 0xffffffff
mov ecx, dword [ebx + 0x30]
sub ecx, dword [ebx + 0x2c]
xor edi, edi
sar ecx, 2
test ecx, ecx
je 0x41e654
mov esi, dword [ebp + 8]
xor eax, eax
test esi, esi
setne al
mov dword [ebp - 0x30], eax
lea esp, [esp]
push dword [ebp - 0x38]
mov eax, dword [ebx + 0x2c]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [eax + edi*4]
call fcn.0042c2f0
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x41e5ce
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040164a
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0x10
jb 0x41e5ec
push dword [ebp - 0x28]
call fcn.0044c086
add esp, 4
cmp dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
je 0x41e6ab
mov eax, dword [ebp - 0x2c]
mov ecx, esi
mov edx, eax
nop
mov si, word [edx]
cmp si, word [ecx]
jne 0x41e636
test si, si
je 0x41e632
mov si, word [edx + 2]
cmp si, word [ecx + 2]
jne 0x41e636
add edx, 4
add ecx, 4
test si, si
jne 0x41e610
xor ecx, ecx
jmp 0x41e63b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x41e697
mov ecx, dword [ebx + 0x30]
sub ecx, dword [ebx + 0x2c]
mov esi, dword [ebp + 8]
inc edi
sar ecx, 2
cmp edi, ecx
jb 0x41e5b0
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
lea esi, [eax - 0x10]
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41e677
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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 - 0x10]
xor ecx, ebp
call fcn.0044c53d
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ecx + edi*4]
mov ebx, 1
mov ecx, dword [ecx]
mov dword [edx], ecx
jmp 0x41e656
push 0x80004005
call fcn.00401f0a
int3

Function at 0x429db0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove esi, ecx
mov eax, esi
pop esi
pop ebp
ret
Function at 0x42aa50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1571
mov eax, dword fs:[0]
push eax
mov eax, 0x145c
call fcn.0044fdb0
mov eax, dword [0x4fd11c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1468], eax
mov eax, dword [0x4fd0e8]
mov ecx, 0x4fd0e8
xor edi, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1464], eax
mov dword [ebp - 4], 1
mov ecx, 0x4ab940
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42aadd
test dx, dx
je 0x42aad9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42aadd
add eax, 4
add ecx, 4
test dx, dx
jne 0x42aab7
xor eax, eax
jmp 0x42aae2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42ab1a
lea eax, [ebp - 0x1460]
push eax
push 0xa28
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x1460]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ab01
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1460]
push eax
jmp 0x42ab38
test esi, esi
jne 0x42ab22
xor ecx, ecx
jmp 0x42ab36
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ab27
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x1464]
call fcn.00401d43
mov esi, dword [ebp - 0x1464]
lea eax, [ebp - 0x1460]
push eax
push dword [ebp + 0x10]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x42aba2
cmp word [ebp - 0x1460], 0
mov edi, 1
jne 0x42ab72
xor ecx, ecx
jmp 0x42ab8f
lea ecx, [ebp - 0x1460]
lea edx, [ecx + 2]
jmp 0x42ab80
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ab80
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x1468]
lea eax, [ebp - 0x1460]
push eax
call fcn.0041c490
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42abc3
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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 - 0x10]
xor ecx, ebp
call fcn.0044c53d
mov esp, ebp
pop ebp
ret
Function at 0x42e010
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1060
call fcn.0044fdb0
mov eax, dword [0x4fd11c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x100c], ecx
lea ecx, [ebp - 0x1004]
push edi
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x1008], eax
sub ecx, edx
lea ecx, [ecx]
movzx eax, word [edx]
mov word [ecx + edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x42e050
push 0x44
lea eax, [ebp - 0x1060]
push 0
push eax
call fcn.0044f280
add esp, 0xc
mov dword [ebp - 0x1060], 0x44
test ebx, ebx
jne 0x42e096
test edi, edi
jne 0x42e096
test esi, esi
jne 0x42e096
mov dword [ebp - 0x1034], 1
xor ecx, ecx
jmp 0x42e0a5
mov ecx, 1
mov dword [ebp - 0x1034], 0x101
cmp dword [ebp + 0x18], 0
je 0x42e0b2
mov eax, 1
jmp 0x42e0b4
xor eax, eax
mov word [ebp - 0x1030], ax
mov eax, dword [ebp - 0x1024]
test ebx, ebx
cmovne eax, ebx
mov dword [ebp - 0x1024], eax
mov eax, dword [ebp - 0x1020]
test edi, edi
cmovne eax, edi
mov dword [ebp - 0x1020], eax
mov eax, dword [ebp - 0x1028]
test esi, esi
cmovne eax, esi
mov dword [ebp - 0x1028], eax
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp - 0x1060]
push eax
push dword [ebp - 0x1008]
lea eax, [ebp - 0x1004]
push 0
push 0
push ecx
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x42e13a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c53d
mov esp, ebp
pop ebp
ret 0x20
cmp dword [ebp + 0xc], 0
je 0x42e168
cmp dword [ebp + 0x14], 0
je 0x42e15a
mov ecx, dword [ebp - 0x100c]
lea eax, [ebp - 0x101c]
push eax
call fcn.0042df60
jmp 0x42e168
push 0xffffffffffffffff
push dword [ebp - 0x101c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 0x101c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, 0x103
je 0x42e124
push dword [ebp - 0x1018]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x101c]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1008]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c53d
mov esp, ebp
pop ebp
ret 0x20
Function at 0x42e610
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42e63d
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x14
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42ed20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x42ed58
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x14
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0x14]
mov ecx, edx
push esi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ed61
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
test eax, eax
je 0x42ed9f
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x15
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14
mov eax, 1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x47309a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4fd11c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00453ce0
mov dword [ebp - 0x14], eax
cmp dword [0x50914c], edi
jne 0x47318b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x473118
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x47326b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x47326b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47326b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x50914c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x509150], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x509154], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x50915c], eax
test eax, eax
je 0x473188
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x509158], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4731b0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4731a3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4731c5
push 4
pop eax
jmp 0x47326d
cmp dword [ebp - 0x14], edi
je 0x4731c5
push dword [0x50914c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4731aa
mov eax, dword [0x509158]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x473223
cmp dword [0x50915c], esi
je 0x473223
push eax
call ebx
push dword [0x50915c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x473223
test eax, eax
je 0x473223
call ecx
test eax, eax
je 0x473218
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x473218
test byte [ebp - 8], 1
jne 0x473223
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x473253
mov eax, dword [0x509150]
cmp eax, esi
je 0x473250
push eax
call ebx
test eax, eax
je 0x473250
call eax
mov edi, eax
test edi, edi
je 0x473250
mov eax, dword [0x509154]
cmp eax, esi
je 0x473250
push eax
call ebx
test eax, eax
je 0x473250
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x50914c]
call ebx
test eax, eax
je 0x47326b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x47326d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c53d
leave
ret
Function at 0x478b27
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0045a692
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x478b5f
xor eax, eax
jmp 0x478b8b
cmp esi, dword [ebp - 4]
je 0x478b88
cmp dword [ebp + 0xc], 0
je 0x478b88
push dword [edi + 0x9c]
call fcn.00478735
push dword [edi + 0x9c]
mov esi, eax
call fcn.004546f3
pop ecx
pop ecx
cmp esi, eax
je 0x478b5b
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x406e73
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [eax], 0x20000000
mov dword [ebp - 4], edi
jne 0x406fba
push ebx
push esi
push 4
pop esi
add eax, esi
mov ecx, dword [eax]
cmp ecx, 0x40020000
jne 0x406f19
add eax, esi
mov ecx, dword [eax]
xor edx, edx
cmp ecx, 0x40000001
je 0x406ec3
cmp ecx, 0x40010001
je 0x406ec3
cmp ecx, 0x40020001
je 0x406ec3
cmp ecx, 0x40030001
jne 0x406ece
shr ecx, 0x10
and ecx, 0xf
inc ecx
mov edx, ecx
add eax, esi
cmp dword [eax], 0x40050002
jne 0x406ee0
inc edx
mov dword [ebp - 4], 0x1000
add eax, esi
mov ecx, edx
sub ecx, edi
je 0x406f13
dec ecx
je 0x406f0d
dec ecx
je 0x406f07
dec ecx
je 0x406f01
dec ecx
je 0x406efb
dec ecx
jne 0x406f26
or dword [ebp - 4], 0xe
jmp 0x406f26
or dword [ebp - 4], 0xc
jmp 0x406f26
or dword [ebp - 4], 0xa
jmp 0x406f26
or dword [ebp - 4], 8
jmp 0x406f26
or dword [ebp - 4], 6
jmp 0x406f26
or dword [ebp - 4], 2
jmp 0x406f26
cmp ecx, 0x40030000
jne 0x406f26
mov dword [ebp - 4], esi
add eax, esi
cmp dword [eax], 0x40020003
push 0x10
pop ecx
jne 0x406f36
or dword [ebp - 4], ecx
add eax, esi
cmp dword [eax], 0x40000004
jne 0x406f44
or dword [ebp - 4], 0x20
add eax, esi
cmp dword [eax], 0x40040005
jne 0x406f52
or dword [ebp - 4], 0x40
add eax, esi
cmp dword [eax], 0x40040006
jne 0x406f60
or byte [ebp - 4], 0x80
add eax, esi
push 7
pop esi
mov edx, dword [eax]
mov ebx, esi
or ebx, 0x40000000
cmp ebx, edx
jne 0x406f75
push 3
jmp 0x406fa0
mov ebx, esi
or ebx, 0x40010000
cmp ebx, edx
je 0x406fa6
mov ebx, esi
or ebx, 0x40020000
cmp ebx, edx
jne 0x406f92
xor edx, edx
inc edx
jmp 0x406fa1
mov ebx, esi
or ebx, 0x40030000
cmp ebx, edx
jne 0x406fb2
push 2
pop edx
shl edx, cl
or dword [ebp - 4], edx
add eax, 4
inc edi
inc ecx
inc ecx
inc esi
cmp ecx, 0x20
jb 0x406f63
shl edi, 8
or dword [ebp - 4], edi
pop esi
pop ebx
cmp dword [eax], 0xffffffff
pop edi
je 0x406fc7
mov eax, 0x8876086c
jmp 0x406fd1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
leave
ret 8

Function at 0x4103f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x62c810
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x410450
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x410450
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x410450
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x410479
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x62c810
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4104e7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.DisableMMX
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4104de
cmp dword [ebp - 0xc], 4
jne 0x4104de
cmp dword [ebp - 0x10], edi
je 0x4104de
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x6aa344], edi
xor eax, eax
jmp 0x41050f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x6aa344], edi
jge 0x41050a
mov dword [0x6aa344], edi
call fcn.00410454
test eax, eax
je 0x41050a
emms
mov dword [0x6aa344], 1
mov eax, dword [0x6aa344]
pop edi
leave
ret

Function at 0x4105ef
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
push ebx
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
xor bl, bl
and byte [ebp + 0x73], bl
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x410626
inc bl
mov byte [ebp + 0x73], 1
cmp dword [ebp - 0x14], 1
jne 0x410648
cmp dword [ebp - 0x20], 4
ja 0x410652
jne 0x410642
cmp dword [ebp - 0x1c], 0xa
jb 0x410642
cmp word [ebp - 0x18], 0x55d
jae 0x410652
mov byte [ebp + 0x73], 1
jmp 0x410652
cmp dword [ebp - 0x14], 2
jne 0x410668
test bl, bl
je 0x410683
mov eax, dword [ebp + 0x7c]
sub eax, 6
je 0x410673
dec eax
je 0x41066c
sub eax, 3
jne 0x410668
cmp byte [ebp + 0x73], 0
je 0x410694
xor eax, eax
jmp 0x41069c
call fcn.00410512
jmp 0x41069c
cmp byte [ebp + 0x73], 0
jne 0x410668
call fcn.0041054a
and eax, 4
jmp 0x41069c
cmp dword [ebp + 0x7c], 0xa
je 0x410694
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
jmp 0x41069c
call fcn.0041054a
and eax, 8
pop edi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x412e1b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x18], eax
jae 0x412f3c
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
jae 0x412f20
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 0xc], edi
shr edi, 2
and edi, esi
mov dword [ebp - 4], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp - 4]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 0xc]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp - 4]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 0xc]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp - 4]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0x10]
add ecx, 8
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov esi, 0xffc03fc0
jne 0x412e72
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x18]
mov dword [ebp + 0xc], edx
jb 0x412e50
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret