joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004bb40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100731b0], eax
je 0x1004bb65
mov eax, 0x10dd
jmp 0x1004bcfd
cmp dword [0x100731b4], 0
je 0x1004bb78
mov eax, dword [0x100731b4]
jmp 0x1004bcfd
cmp dword [ebp + 8], 0
jne 0x1004bb88
mov eax, 6
jmp 0x1004bcfd
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1004bbb1
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x100731b4], ecx
mov edx, dword [ebp + 8]
mov dword [0x100731b8], edx
mov eax, dword [ebp - 0xc]
jmp 0x1004bcfd
push 0x18
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1004bc0a
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x100731b4], ecx
cmp dword [ebp - 0x18], 0
je 0x1004bbf9
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x100731b8], ecx
mov eax, dword [ebp - 0xc]
jmp 0x1004bcfd
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1004a630
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1004a630
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0
je 0x1004bc4a
cmp dword [ebp - 8], 0x1e
jbe 0x1004bc66
mov dword [ebp - 0xc], 9
cmp dword [0x100731a8], 0
je 0x1004bc61
jmp 0x1004bbda
jmp 0x1004bbd1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1004bc8d
mov dword [ebp - 0xc], 9
cmp dword [0x100731a8], 0
je 0x1004bc88
jmp 0x1004bbda
jmp 0x1004bbd1
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1004bcba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x1004bbd1
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x100731c0]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x100731c0], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x1004c4fe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1006f184]
jne 0x1004c508
repz ret
jmp fcn.1004cba0
Function at 0x1004e400
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
or eax, 0xffffffff
test ecx, ecx
je 0x1004e42b
mov edx, dword [ebp + 8]
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x100605d0]
inc edx
dec ecx
jne 0x1004e411
pop esi
not eax
pop ebp
ret

Function at 0x1004e4b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1004e4e0
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1004e4df
xor eax, eax
test edi, edi
jle 0x1004e4df
mov cl, byte [ebp + 8]
lea esp, [esp]
mov dl, byte [eax + esi]
xor dl, cl
sub dl, al
mov byte [eax + esi], dl
inc eax
cmp eax, edi
jl 0x1004e4d0
pop edi
pop esi
pop ebp
ret

Function at 0x1004e530
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
test esi, esi
jne 0x1004e560
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x104
push esi
push eax
call edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
push esi
lea edx, [ebp - 0x20c]
push edx
call edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 4
Function at 0x1004e6e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x82]
push edx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], eax
mov word [ebp - 0x84], cx
call sub.MSVCR100.dll_memset
xor eax, eax
push 0x7e
push eax
lea ecx, [ebp - 0x102]
push ecx
mov word [ebp - 0x104], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0x7e
push edx
lea eax, [ebp - 0x202]
push eax
mov word [ebp - 0x204], dx
call sub.MSVCR100.dll_memset
add esp, 0x24
push 0x40
lea ecx, [ebp - 0x204]
push ecx
push 0x40
lea edx, [ebp - 0x104]
push edx
push 0x40
lea eax, [ebp - 0x84]
push eax
push ebx
mov ecx, esi
call fcn.1004e630
test eax, eax
je 0x1004e8c3
push esi
push 0x20
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
je 0x1004e8c3
cmp dword [ebp - 0x22c], 0
mov eax, dword [ebp - 0x21c]
je 0x1004e8b6
cmp dword [edi], eax
jb 0x1004e8b6
xor ebx, ebx
xor esi, esi
mov dword [edi], eax
mov dword [ebp - 0x228], ebx
test eax, eax
je 0x1004e874
jmp 0x1004e7e6
mov ebx, dword [ebp - 0x228]
cmp ebx, dword [ebp - 0x210]
jae 0x1004e874
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x182]
push edx
mov word [ebp - 0x184], cx
call sub.MSVCR100.dll_memset
push ebx
lea eax, [ebp - 0x204]
push eax
push str._s_d
lea ecx, [ebp - 0x184]
push 0x3f
push ecx
call dword [sym.imp.MSVCR100.dll__snwprintf]
mov eax, dword [edi]
sub eax, esi
add esp, 0x20
mov ebx, 0x4000
cmp eax, 0x4000
jg 0x1004e83b
mov ebx, eax
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x22c]
push edx
push ebx
add eax, esi
push eax
lea ecx, [ebp - 0x184]
push ecx
lea edx, [ebp - 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
je 0x1004e874
inc dword [ebp - 0x228]
add esi, ebx
cmp esi, dword [edi]
jb 0x1004e7e0
mov eax, dword [edi]
mov esi, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x218]
push eax
push esi
push ecx
call fcn.1004e4b0
mov edx, dword [edi]
push edx
push esi
call fcn.1004e400
add esp, 0x14
cmp eax, dword [ebp - 0x214]
jne 0x1004e8c3
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 0xc
push 0xea
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004e930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, ecx
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x82]
push edx
mov dword [ebp - 0x8c], eax
mov word [ebp - 0x84], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x40
lea eax, [ebp - 0x84]
push eax
push esi
mov ecx, ebx
call fcn.1004e8e0
test eax, eax
jne 0x1004e99a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
add eax, 0x20
push eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x90], eax
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x1004ea6a
lea ecx, [ebp - 0x90]
push ecx
push esi
lea edx, [ebp - 0x94]
push edx
mov edx, dword [ebx + 0x208]
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebx + 0x20c]
push ecx
push edx
mov dword [ebp - 0x94], 3
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1004ea61
mov eax, dword [ebp - 0x90]
mov ecx, dword [esi + 0xc]
push eax
push esi
push ecx
call fcn.1004e4b0
add esp, 0xc
cmp dword [ebp - 0x8c], 0
je 0x1004ea51
mov eax, dword [esi + 8]
cmp eax, dword [edi]
ja 0x1004ea51
push eax
lea ebx, [esi + 0x20]
push ebx
mov dword [edi], eax
call fcn.1004e400
add esp, 8
cmp eax, dword [esi + 0x10]
jne 0x1004ea61
mov edx, dword [edi]
mov eax, dword [ebp - 0x8c]
push edx
push ebx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x88], 1
jmp 0x1004ea61
mov ecx, dword [esi + 8]
push 0xea
mov dword [edi], ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004fba0
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 8
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x1004fc3b
nop
mov eax, dword [ebp - 4]
test eax, eax
je 0x1004fc6f
inc eax
push eax
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x1004fc3b
mov edx, dword [ebp - 4]
inc edx
push edx
push 0
push esi
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push ecx
push esi
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1004fc44
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
lea ebx, [eax + edi]
cmp ebx, ecx
ja 0x1004fc59
add edi, dword [ebp + 0xc]
push eax
push esi
push edi
call sub.MSVCR100.dll_memcpy
push esi
mov edi, ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov edx, dword [ebp + 8]
add esp, 0x10
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x1004fbc0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
sub ecx, edi
add edi, dword [ebp + 0xc]
push ecx
push esi
push edi
call sub.MSVCR100.dll_memcpy
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 0x10
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10050340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x100503bb
push esi
mov esi, dword [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x13240ce
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
Function at 0x100503d0
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x2c]
push ecx
xor edi, edi
push edi
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x34]
push edx
push eax
push esi
push ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x10050422
cmp eax, 0x7a
jne 0x10050563
cmp dword [ebp - 0x34], 3
jne 0x10050563
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
je 0x1005054f
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
push edi
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x38]
add esp, 0xc
lea edx, [ebp - 0x2c]
push edx
push edi
lea eax, [ebp - 0x34]
push eax
push ecx
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10050546
mov ebx, dword [ebp - 0x2c]
add ebx, 0xffffffc0
test ebx, ebx
jle 0x10050546
call fcn.10050340
mov esi, eax
xor esi, dword [ebp + 0x1c]
xor edx, edx
test ebx, ebx
jle 0x100504a9
lea esp, [esp]
mov eax, edx
and eax, 3
mov ecx, 3
sub ecx, eax
mov eax, esi
shr eax, cl
inc edx
xor byte [edx + edi + 0x2f], al
cmp edx, ebx
jl 0x10050490
xor edx, edx
jmp 0x100504b0
mov ecx, edx
and ecx, 3
mov eax, esi
shr eax, cl
inc edx
xor byte [edx + edi - 1], al
cmp edx, 0x21
jl 0x100504b0
xor eax, eax
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
lea eax, [edi + 0x30]
push ebx
push eax
mov byte [ebp - 0x28], 0
call fcn.1003fd20
add esp, 0xc
mov eax, 0x21
mov ecx, edi
lea edx, [ebp - 0x28]
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x10050546
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x10050500
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10050546
push ebx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
mov ecx, dword [ebp - 0x40]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x10050546
push ebx
lea ecx, [edi + 0x30]
push ecx
push eax
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 0x3c]
add esp, 0xc
mov dword [edx], ebx
mov dword [ebp - 0x30], 1
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
Function at 0x10050580
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0x18]
lea eax, [edi + 0x40]
push eax
mov dword [ebp - 4], eax
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
jne 0x100505a4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
push ebx
push edi
lea eax, [esi + 0x30]
push ecx
push eax
call sub.MSVCR100.dll_memcpy
call fcn.10050340
mov ebx, eax
xor ebx, dword [ebp + 0x1c]
push 0
call dword [sym.imp.MSVCR100.dll__time64]
push eax
call dword [sym.imp.MSVCR100.dll_srand]
add esp, 0x14
xor edi, edi
call dword [sym.imp.MSVCR100.dll_rand]
mov byte [edi + esi + 0x21], al
inc edi
cmp edi, 0xf
jl 0x100505d1
xor edi, edi
call dword [sym.imp.MSVCR100.dll_rand]
mov edx, dword [ebp + 0x18]
lea ecx, [esi + edx + 0x30]
mov byte [ecx + edi], al
inc edi
cmp edi, 0x10
jl 0x100505e3
mov eax, edx
push esi
push eax
lea eax, [esi + 0x30]
push eax
call fcn.1003fd20
add esp, 0xc
xor eax, eax
jmp 0x10050610
mov ecx, eax
and ecx, 3
mov edx, ebx
shr edx, cl
inc eax
xor byte [eax + esi - 1], dl
cmp eax, 0x21
jl 0x10050610
xor eax, eax
cmp dword [ebp + 0x18], eax
jle 0x1005064a
lea ebx, [ebx]
mov edx, eax
and edx, 3
mov ecx, 3
sub ecx, edx
mov edx, ebx
shr edx, cl
inc eax
xor byte [eax + esi + 0x2f], dl
cmp eax, dword [ebp + 0x18]
jl 0x10050630
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push esi
push 3
push ecx
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push esi
mov edi, eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
pop ebx
test edi, edi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100506c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100507bc
mov eax, dword [ebp - 0x108]
cmp eax, 1
jne 0x10050730
cmp dword [ebp - 0x114], 4
jne 0x100507bc
mov al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x100507bc
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x10050788
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x1005075e
mov al, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x10050773
mov al, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x100507bc
mov al, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x100507bc
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x100507a7
mov al, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x100507bc
mov al, 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret

Function at 0x10050900
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.1004fb70
test eax, eax
je 0x100509a7
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.100461b0
add esp, 8
test eax, eax
je 0x100509a7
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
push 0x10
mov dword [ebp - 0x20], edx
lea edx, [ebp - 0x24]
push edx
push 3
push str.Custom_ID2
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 8]
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test esi, esi
je 0x10050991
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 4
Function at 0x100509f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10060a68]
mov edx, dword [0x10060a70]
push ebx
mov ebx, ecx
mov ecx, dword [0x10060a6c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x10060a74]
mov dword [ebp - 0x10], ecx
push edi
mov ecx, 0x10074268
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x10
call fcn.1003e5b0
mov ecx, 0x10074258
mov edi, eax
call fcn.1003e5b0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x1c]
push ecx
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10050a97
test esi, esi
je 0x10050a7f
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [esi], edx
mov edx, dword [ebp - 8]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 0
je 0x10050ab8
push esi
mov ecx, ebx
call fcn.10050900
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 8

Function at 0x10050da0
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x10050e3f
cmp dword [ebp + 0xc], 0
je 0x10050e3f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov edi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov dword [ebp - 4], 0
mov ecx, dword [esi + 8]
push 0
push 0
lea eax, [ebp - 4]
push eax
push ecx
call edi
push 0xa
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x10050dd0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
pop edi
pop ebx
cmp dword [ecx], eax
jb 0x10050e29
mov edx, dword [ebp + 8]
test edx, edx
je 0x10050e29
push ecx
push eax
push edx
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10050e1c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x7a
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0x7a
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, 4
pop esi
mov esp, ebp
pop ebp
ret 8