joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4678c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4d10
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x50d108]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.004043c0
mov dword [ebp - 4], 0
mov edx, 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x467923
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004041b0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.004acb1c
mov edx, eax
add esp, 8
test edx, edx
js 0x467a0c
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x467a0c
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x467972
push dword [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
call fcn.00404900
mov ecx, eax
test ecx, ecx
jne 0x467987
push 0x80004005
call fcn.00404660
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00467c40
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x4679ba
push dword [esi - 0xc]
mov edx, esi
mov ecx, edi
call fcn.004676b0
add esp, 4
mov edi, eax
jmp 0x4679bc
xor edi, edi
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4679da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4679f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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
push 0x80070057
call fcn.00404660
int3
Function at 0x468aa0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0468
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x50d108]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call esi
test eax, eax
je 0x468b64
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
test eax, eax
jne 0x468b64
push edi
call esi
test eax, eax
je 0x468b64
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x468b04
push edi
call ebx
test eax, eax
jne 0x468b64
lea ecx, [ebp - 0x10]
call fcn.00404980
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
lea eax, [ebp - 0x10]
push 0x4f2924
push eax
call fcn.00414020
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call ebx
push 1
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
push 4
push 0
push esi
call edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x468b64
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x469080
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx], vtable.MD5_CTX.0
xorps xmm0, xmm0
mov dword [ecx + 0x18], 0
mov eax, ecx
mov dword [ecx + 0x14], 0
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
movups xmmword [ecx + 0x5c], xmm0
movups xmmword [ecx + 0x6c], xmm0
movups xmmword [ecx + 0x7c], xmm0
movups xmmword [ecx + 0x8c], xmm0
mov byte [ecx + 0x5c], 0x80
ret
Function at 0x4691d0
Capabilities:
Encrypt data using rc4 prga
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x50d108]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
mov edi, dword [ebp + 8]
lea eax, [esi + 0x16]
nop dword [eax]
movzx ecx, byte [eax - 2]
lea eax, [eax + 4]
mov byte [ebp + edx - 0xc], cl
movzx ecx, byte [eax - 5]
mov byte [ebp + edx - 0xb], cl
movzx ecx, byte [eax - 4]
mov byte [ebp + edx - 0xa], cl
movzx ecx, byte [eax - 3]
mov byte [ebp + edx - 9], cl
add edx, 4
cmp edx, 8
jb 0x4691f0
mov edx, dword [esi + 0x14]
lea ebx, [esi + 0x5c]
shr edx, 3
mov ecx, 0x38
and edx, 0x3f
mov eax, 0x78
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovb eax, ecx
mov ecx, esi
push eax
push ebx
call fcn.00469100
push 8
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00469100
lea ecx, [edi + 1]
mov edi, 4
lea edx, [esi + 6]
nop dword [eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 5]
mov byte [ecx - 4], al
movzx eax, byte [edx - 4]
mov byte [ecx - 3], al
movzx eax, byte [edx - 3]
mov byte [ecx - 2], al
sub edi, 1
jne 0x469260
xor eax, eax
mov edi, esi
xorps xmm0, xmm0
mov ecx, 0x27
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
mov dword [esi + 0x18], eax
xor ecx, ebp
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
movups xmmword [ebx], xmm0
pop edi
movups xmmword [ebx + 0x10], xmm0
pop esi
movups xmmword [ebx + 0x20], xmm0
movups xmmword [ebx + 0x30], xmm0
mov byte [ebx], 0x80
pop ebx
call fcn.0048a7e3
mov esp, ebp
pop ebp
ret 4
Function at 0x469d30
Capabilities:
Check os version
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5068
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x50d108]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], 0
je 0x469db5
mov eax, dword [0x50de04]
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x469d99
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x469d84
mov dword [0x50de04], 1
jmp 0x469d9d
push esi
push dword [ebp + 0xc]
mov dword [0x50de04], 0
call fcn.0046b250
jmp 0x469de0
test eax, eax
je 0x469daa
push esi
push dword [ebp + 0xc]
call fcn.00469f90
test eax, eax
jne 0x469de0
push esi
push dword [ebp + 0xc]
call fcn.0046b250
jmp 0x469de0
push dword [ebp + 0xc]
call fcn.0046aba0
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call esi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x469e02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x469e20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf3b8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x50d108]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [0x50de04]
cmp eax, 0xffffffff
jne 0x469e76
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x469e6a
mov dword [0x50de04], 1
jmp 0x469e7a
mov dword [0x50de04], 0
jmp 0x469e8b
test eax, eax
je 0x469e8b
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046ae70
mov esi, eax
test esi, esi
jne 0x469e98
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046b420
mov esi, eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x469eba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x469ed0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfcf8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x50d108]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push dword [ebp + 8]
call fcn.0046aba0
mov edi, dword [ebp + 8]
mov ebx, eax
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test ebx, ebx
setne dl
add eax, 0xfffffff0
mov dword [ebp - 0x10], edx
or ecx, 0xffffffff
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x469f6d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46b250
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5316
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x50d108]
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, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46b3f1
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], 0
call fcn.00404900
mov ecx, eax
test ecx, ecx
jne 0x46b304
push 0x80004005
call fcn.00404660
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x21c]
push dword [esi + 8]
push dword [esi]
push str.__s___s
push eax
call fcn.00414020
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a33a0
add esp, 0x1c
mov dword [ebp - 0x22c], 0x104
lea eax, [ebp - 0x22c]
lea ecx, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.00442e70
mov esi, dword [ebp - 0x21c]
mov edi, eax
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004b675b
add esp, 8
test eax, eax
je 0x46b3bb
test esi, esi
jne 0x46b38b
lea edi, [esi + 0xd]
jmp 0x46b3bb
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46b390
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
xor ebx, ebx
mov byte [ebp - 4], 0
test edi, edi
sete bl
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46b3de
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x46b3f3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46b3f3
xor ebx, ebx
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.0048a7e3
mov esp, ebp
pop ebp
ret 8
Function at 0x46b420
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x50d108]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
call fcn.004a33a0
add esp, 0xc
mov dword [ebp - 0x418], 0x104
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x41c]
push eax
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x20c], 0
je 0x46b4d7
test esi, esi
je 0x46b4c0
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46b4a2
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.004042c0
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a7e3
mov esp, ebp
pop ebp
ret 8
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004a33a0
add esp, 0xc
mov dword [ebp - 0x418], 0x104
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], 1
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x414], 0
je 0x46b575
test esi, esi
je 0x46b4c0
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b540
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004042c0
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a7e3
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0048a7e3
mov esp, ebp
pop ebp
ret 8

Function at 0x46b590
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x513b50], 0
mov dword [ebp - 8], 0
jne 0x46b5bd
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push 0x513b50
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ecx, dword [ebp + 8]
push 0x513b50
call fcn.004043c0
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x46b5e0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x513950], 0
mov dword [ebp - 8], 0
jne 0x46b60f
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push 0x513950
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
mov ecx, dword [ebp + 8]
push 0x513950
call fcn.004043c0
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x46b630
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x46b645
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46b650
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x46bb80
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x50d108]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
mov edi, edx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.004a33a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x46bbe4
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004043c0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0048a7e3
mov esp, ebp
pop ebp
ret

Function at 0x46bc10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x50d108]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
mov edi, edx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.004a33a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x46bc74
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004043c0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0048a7e3
mov esp, ebp
pop ebp
ret

Function at 0x46be50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov eax, edi
mov dword [ebp - 4], eax
test edx, edx
je 0x46be9f
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x46beb5
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x46be99
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x46bec3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x470eb0
Capabilities:
Check for time delay via gettickcount
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5b48
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x50d108]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
test eax, eax
je 0x47107a
push 0x511570
push 0x100
call fcn.0048a8d2
xor ebx, ebx
mov dword [ebp - 0x38], vtable.CxAutoArray_unsigned_char_.0
add esp, 8
mov dword [ebp - 0x34], ebx
test eax, eax
je 0x470f16
mov ebx, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
je 0x470f2b
mov esi, dword [edi + 4]
sub esi, dword [edi]
jmp 0x470f2d
xor esi, esi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0
call fcn.0046caa0
mov ecx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x470f4c
test eax, eax
je 0x470f58
test edi, edi
je 0x470f58
push eax
mov ecx, edi
call fcn.004643c0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x10]
push eax
push 0x100
push ebx
push dword [ecx]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x471050
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x471073
test edi, edi
je 0x470fdf
mov edx, dword [edi + 4]
xor eax, eax
sub edx, dword [edi]
mov dword [ebp - 0x18], ecx
add dword [ebp - 0x18], esi
adc eax, dword [ebp - 0x1c]
test eax, eax
jb 0x470fca
ja 0x470fbc
cmp dword [ebp - 0x18], edx
jbe 0x470fca
lea eax, [esi + ecx]
mov ecx, edi
push eax
call fcn.004643c0
mov ecx, dword [ebp - 0x10]
mov eax, dword [edi]
push ecx
add eax, esi
push ebx
push eax
call fcn.004a2e20
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
add esi, ecx
adc eax, 0
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x47100b
push ecx
push eax
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x28]
call edx
add esp, 0x24
test eax, eax
je 0x471050
cmp dword [ebp + 0x18], 0xffffffff
je 0x47101f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp + 0x18]
jae 0x471050
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push 0x100
push ebx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [ebp + 0xc]
test eax, eax
jne 0x470f92
xor esi, esi
test ebx, ebx
je 0x47105f
push ebx
call fcn.0048a8e9
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 1
jmp 0x471052
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471090
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5b1e
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x50d108]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
test edi, edi
je 0x47118f
test esi, esi
je 0x47118f
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00470cf0
test eax, eax
je 0x47114a
mov ebx, dword [ebp - 0x18]
test ebx, ebx
setne al
test al, al
je 0x47114a
mov ecx, ebx
call fcn.0046c910
mov ecx, eax
mov eax, 0x51eb851f
mul ecx
shr edx, 5
cmp edx, 3
je 0x471122
cmp edx, 4
je 0x47114a
cmp edx, 5
je 0x47114a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x471132
lea eax, [ebp - 0x18]
push eax
call fcn.00471440
sub esp, 8
mov edx, ebx
push dword [ebp + 0xc]
push ecx
push esi
mov ecx, edi
call fcn.004711b0
add esp, 0x14
mov ebx, eax
jmp 0x47114c
xor ebx, ebx
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x47117b
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x47117b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x47117b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret