joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422cf0
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 8
mov ecx, dword [edi + 0x18]
push ebx
mov ebx, dword [edi + 0x20]
push ebp
push esi
xor ebp, ebp
push ebp
mov esi, eax
mov eax, dword [edi + 0x1c]
push 0x40
push eax
push ecx
call fcn.0045c670
xor ecx, ecx
push ebp
add eax, ebx
push 8
adc edx, ecx
push edx
push eax
call fcn.0045c670
mov dword [esp + 0xc], eax
mov eax, ebx
and eax, 3
shr ebx, 2
mov dword [esp + 0x10], edx
cmp eax, ebp
jne 0x422d35
mov dword [edi + ebx*4 + 0x24], ebp
mov ecx, 3
sub ecx, eax
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov edx, 0x80
shl edx, cl
inc ebx
or dword [edi + ebx*4 + 0x20], edx
cmp ebx, 0xe
je 0x422d75
and ebx, 0xf
jne 0x422d6b
push ebp
push edi
lea eax, [edi + 0x24]
push eax
push edi
call fcn.00422380
add dword [edi + 0x18], 1
adc dword [edi + 0x1c], ebp
mov dword [edi + ebx*4 + 0x24], ebp
inc ebx
cmp ebx, 0xe
jne 0x422d53
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ebp
push edi
lea eax, [edi + 0x24]
push eax
mov dword [edi + ebx*4 + 0x24], ecx
push edi
mov dword [edi + ebx*4 + 0x28], edx
call fcn.00422380
add dword [edi + 0x18], 1
adc dword [edi + 0x1c], ebp
mov eax, dword [edi]
inc esi
inc esi
mov ecx, eax
shr ecx, 0x18
mov byte [esi - 2], cl
inc esi
mov edx, eax
shr edx, 0x10
mov byte [esi - 2], dl
mov ecx, eax
shr ecx, 8
mov byte [esi - 1], cl
mov byte [esi], al
mov eax, dword [edi + 4]
inc esi
inc esi
inc esi
mov edx, eax
shr edx, 0x18
mov byte [esi - 2], dl
mov ecx, eax
shr ecx, 0x10
mov byte [esi - 1], cl
inc esi
mov edx, eax
shr edx, 8
mov byte [esi - 1], dl
mov byte [esi], al
mov eax, dword [edi + 8]
inc esi
inc esi
mov ecx, eax
shr ecx, 0x18
mov byte [esi - 1], cl
inc esi
mov edx, eax
shr edx, 0x10
mov byte [esi - 1], dl
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
mov byte [esi + 1], al
mov eax, dword [edi + 0xc]
inc esi
inc esi
mov edx, eax
shr edx, 0x18
mov byte [esi], dl
inc esi
mov ecx, eax
shr ecx, 0x10
mov byte [esi], cl
inc esi
mov edx, eax
shr edx, 8
mov byte [esi], dl
inc esi
mov byte [esi], al
mov eax, dword [edi + 0x10]
inc esi
mov ecx, eax
shr ecx, 0x18
mov byte [esi], cl
mov edx, eax
inc esi
shr edx, 0x10
mov byte [esi], dl
inc esi
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
mov byte [esi + 1], al
pop esi
mov dword [edi + 0x18], ebp
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], ebp
pop ebp
mov dword [edi], 0x67452301
mov dword [edi + 4], 0xefcdab89
mov dword [edi + 8], 0x98badcfe
mov dword [edi + 0xc], 0x10325476
mov dword [edi + 0x10], 0xc3d2e1f0
pop ebx
add esp, 8
ret
Function at 0x42ba00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x482271
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push edi
mov eax, dword [0x49a0d0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov dword [edi + 0x2c], ebx
mov dword [esp + 0x18], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov eax, dword [esp + 0x24]
mov byte [esp + 0x18], 2
mov dword [edi + 0xc], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x30], esi
je 0x42ba72
cmp esi, ebx
je 0x42ba60
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [edi + 0x30]
cmp eax, ebx
je 0x42ba6f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x30], esi
cmp dword [edi + 0x2c], ebp
je 0x42ba96
cmp ebp, ebx
je 0x42ba84
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
push ebp
call ecx
mov eax, dword [edi + 0x2c]
cmp eax, ebx
je 0x42ba93
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi + 0x2c], ebp
mov eax, dword [edi + 0x14]
sub eax, 1
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], ebx
mov byte [edi + 8], bl
je 0x42bac5
sub eax, 1
mov eax, edi
jne 0x42bacc
call fcn.0042be10
jmp 0x42baca
call fcn.0042bd70
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x42baf0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x482021
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x49a0d0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, 2
mov dword [esp + 0x14], eax
cmp dword [esi + 0x14], eax
jne 0x42bb69
cmp dword [esi + 0x10], 1
jne 0x42bb69
mov edi, dword [esi]
cmp byte [edi], 0
jne 0x42bb69
mov eax, dword [edi + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 4]
push eax
push ecx
mov byte [edi + 0x18], 0
call fcn.0045ab0f
mov dword [edi + 4], eax
mov dword [esi + 0xc], eax
call fcn.00454083
mov edx, dword [esi + 0x18]
add eax, 0x20
push eax
mov eax, dword [esi + 0xc]
push edx
push 1
push eax
call fcn.0044afe5
add esp, 0x18
cmp dword [esi + 0x14], 0
jne 0x42bb92
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x42bbd5
mov edx, dword [esi + 0x34]
test edx, edx
je 0x42bbd5
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x42bbd5
mov edi, dword [eax]
push 0
push ecx
mov ecx, dword [edi + 0xc]
push edx
push eax
call ecx
jmp 0x42bbd5
cmp dword [esi + 0x10], 0
jne 0x42bbb4
cmp byte [esi + 8], 0
je 0x42bbaa
mov edx, dword [esi + 0xc]
push edx
call fcn.0044be75
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x42bbd5
push eax
jmp 0x42bbcd
mov edi, dword [esi]
test edi, edi
je 0x42bbd5
cmp byte [edi + 0x18], 0
je 0x42bbcc
mov eax, dword [edi + 4]
push eax
call fcn.0044be75
add esp, 4
push edi
call fcn.004498cd
add esp, 4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x42bbec
push eax
call fcn.0044a3fd
add esp, 4
mov dword [esi + 0x34], 0
mov byte [esp + 0x14], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x42bc00
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esi + 0x2c]
test esi, esi
je 0x42bc17
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x42be10
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp dword [edi + 0x10], ebx
jne 0x42bf02
push ebp
push esi
push 0x1c
call fcn.0044997f
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x42be5a
mov eax, 0x10000
push eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov byte [esi], bl
mov byte [esi + 0x18], 1
mov dword [esi + 8], eax
call fcn.0044bdab
add esp, 4
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x42be5c
mov byte [esi], 1
jmp 0x42be5c
xor esi, esi
push 1
push 0x100000
call fcn.0047049a
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x42beb1
call fcn.00454083
push eax
push 0x100000
push 1
push ebp
call fcn.0044c28c
add esp, 0x10
cmp eax, ebx
jle 0x42beb1
jmp 0x42be90
mov ecx, ebp
call fcn.0042b830
call fcn.00454083
push eax
push 0x100000
push 1
push ebp
call fcn.0044c28c
add esp, 0x10
cmp eax, ebx
jg 0x42be90
cmp byte [esi], bl
je 0x42bebd
mov dword [edi + 0xc], ebx
mov dword [edi + 0x18], ebx
jmp 0x42bedc
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 4]
push eax
push ecx
mov byte [esi + 0x18], bl
call fcn.0045ab0f
mov dword [esi + 4], eax
mov dword [edi + 0xc], eax
mov edx, dword [esi + 0x14]
add esp, 8
mov dword [edi + 0x18], edx
cmp byte [esi + 0x18], bl
je 0x42beed
mov eax, dword [esi + 4]
push eax
call fcn.0044be75
add esp, 4
push esi
call fcn.004498cd
push ebp
call fcn.0044be75
add esp, 8
pop esi
mov byte [edi + 8], 1
pop ebp
call fcn.0042bd70
pop edi
pop ebx
ret
Function at 0x4411a0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push edx
push 0
push 0
call fcn.004726a3
mov ecx, dword [esp + 0x20]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x4411c3
xor eax, eax
pop ecx
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4411d2
mov eax, 1
pop ecx
ret

Function at 0x443b00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov ebx, eax
xor esi, esi
push edi
mov edi, ecx
test ebx, ebx
je 0x443bbc
mov eax, dword [edi]
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
shr ecx, 9
add eax, ecx
dec ebx
add edi, 4
cmp eax, 0x100
jae 0x443b55
movsx edx, byte [eax + 0x48a020]
mov ecx, 9
sub ecx, edx
shl eax, cl
shl edx, 8
and eax, 0xff
movzx eax, byte [eax + 0x48a120]
add edx, esi
lea esi, [edx + eax]
jmp 0x443bb4
cmp eax, 0x10000
jae 0x443b6d
mov ecx, eax
shr ecx, 8
movsx edx, byte [ecx + 0x48a020]
add edx, 8
jmp 0x443b94
cmp eax, 0x1000000
jae 0x443b85
mov edx, eax
shr edx, 0x10
movsx edx, byte [edx + 0x48a020]
add edx, 0x10
jmp 0x443b94
mov ecx, eax
shr ecx, 0x18
movsx edx, byte [ecx + 0x48a020]
add edx, 0x18
lea ecx, [edx - 9]
shr eax, cl
shl edx, 8
and eax, 0xff
movzx eax, byte [eax + 0x48a120]
add eax, edx
add esi, eax
test ebp, ebp
je 0x443bb4
cmp eax, ebp
jge 0x443bc3
test ebx, ebx
jne 0x443b16
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret

Function at 0x444ec0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
cmp eax, 8
push esi
push edi
jle 0x444f32
mov edx, dword [ecx + 0x30]
mov esi, eax
and esi, 1
mov eax, dword [ecx + 0x10]
je 0x444ee2
add eax, eax
sub eax, dword [ecx + 0x14]
add edx, edx
sub edx, dword [ecx + 0x34]
jmp 0x444ef2
lea eax, [eax + eax*2]
sub eax, dword [ecx + 0x14]
lea edx, [edx + edx*2]
sub edx, dword [ecx + 0x34]
sar eax, 1
sar edx, 1
mov edi, dword [ecx + 0x10]
mov dword [ecx + 0x14], edi
mov edi, dword [ecx + 0x30]
mov dword [ecx + 0x34], edi
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x30], edx
test esi, esi
je 0x444f1a
add eax, eax
sub eax, dword [ecx + 0x14]
add edx, edx
sub edx, edi
pop edi
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x34], edx
pop esi
ret
lea eax, [eax + eax*2]
sub eax, dword [ecx + 0x14]
lea edx, [edx + edx*2]
sub edx, edi
sar eax, 1
sar edx, 1
pop edi
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x34], edx
pop esi
ret
cmp eax, 1
jle 0x444f80
lea edi, [eax - 1]
cdq
sub eax, edx
xor esi, esi
sar eax, 1
je 0x444f80
and edi, 7
mov edx, dword [ecx + edi*4 + 0x10]
and esi, 7
xor dword [ecx + esi*4 + 0x10], edx
mov edx, dword [ecx + esi*4 + 0x10]
xor dword [ecx + edi*4 + 0x10], edx
mov edx, dword [ecx + edi*4 + 0x10]
xor dword [ecx + esi*4 + 0x10], edx
mov edx, dword [ecx + edi*4 + 0x30]
xor dword [ecx + esi*4 + 0x30], edx
mov edx, dword [ecx + esi*4 + 0x30]
xor dword [ecx + edi*4 + 0x30], edx
mov edx, dword [ecx + edi*4 + 0x30]
xor dword [ecx + esi*4 + 0x30], edx
dec eax
dec edi
inc esi
test eax, eax
jne 0x444f43
pop edi
pop esi
ret
Function at 0x447830
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
cmp eax, 8
push esi
jle 0x447873
mov edx, eax
and edx, 1
mov eax, dword [ecx + 0x10]
je 0x447849
add eax, eax
sub eax, dword [ecx + 0x14]
jmp 0x447851
lea eax, [eax + eax*2]
sub eax, dword [ecx + 0x14]
sar eax, 1
mov esi, dword [ecx + 0x10]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], eax
test edx, edx
je 0x447867
add eax, eax
sub eax, esi
mov dword [ecx + 0x14], eax
pop esi
ret
lea eax, [eax + eax*2]
sub eax, esi
sar eax, 1
mov dword [ecx + 0x14], eax
pop esi
ret
cmp eax, 1
jle 0x4478ab
push edi
lea edi, [eax - 1]
cdq
sub eax, edx
xor esi, esi
sar eax, 1
je 0x4478aa
and edi, 7
mov edx, dword [ecx + edi*4 + 0x10]
and esi, 7
xor dword [ecx + esi*4 + 0x10], edx
mov edx, dword [ecx + esi*4 + 0x10]
xor dword [ecx + edi*4 + 0x10], edx
mov edx, dword [ecx + edi*4 + 0x10]
xor dword [ecx + esi*4 + 0x10], edx
dec eax
dec edi
inc esi
test eax, eax
jne 0x447885
pop edi
pop esi
ret

Function at 0x44955e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x49c540], 0
push esi
jne 0x4494cc
call fcn.004493e0
test eax, eax
je 0x44950f
mov eax, dword [0x49c540]
cmp eax, 1
jne 0x4494ed
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x44950f
pop esi
ret
push eax
call dword [0x49c548]
test eax, eax
jne 0x449557
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x449513
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x49c540]
call dword [0x49c548]
mov edi, eax
test edi, edi
je 0x449538
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x449554
mov edi, esi
add esi, 0xff0
push edi
push dword [0x49c540]
call dword [0x49c544]
add edi, 0x10
cmp edi, esi
jb 0x449540
mov eax, edi
pop edi
pop esi
ret
jmp 0x4494b9

Function at 0x4498d8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49a0d0]
jne 0x4498e2
repz ret
jmp fcn.0044dc00
Function at 0x46bd9d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0044ecec
and dword [ebp - 4], 0
cmp dword [0x49d164], 0
mov ebx, eax
jne 0x46be4e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46beff
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x46beff
push eax
call fcn.0044ec7a
mov dword [esp], 0x489934
push edi
mov dword [0x49d164], eax
call esi
push eax
call fcn.0044ec7a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x49d168], eax
call esi
push eax
call fcn.0044ec7a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x49d16c], eax
call esi
push eax
call fcn.0044ec7a
pop ecx
mov dword [0x49d174], eax
test eax, eax
je 0x46be4e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044ec7a
pop ecx
mov dword [0x49d170], eax
mov eax, dword [0x49d170]
cmp eax, ebx
je 0x46bea6
cmp dword [0x49d174], ebx
je 0x46bea6
push eax
call fcn.0044ecf5
push dword [0x49d174]
mov esi, eax
call fcn.0044ecf5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x46bea6
test edi, edi
je 0x46bea6
call esi
test eax, eax
je 0x46be9d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46be9d
test byte [ebp - 0xc], 1
jne 0x46bea6
or dword [ebp + 0x10], 0x200000
jmp 0x46bedf
mov eax, dword [0x49d168]
cmp eax, ebx
je 0x46bedf
push eax
call fcn.0044ecf5
pop ecx
test eax, eax
je 0x46bedf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x46bedf
mov eax, dword [0x49d16c]
cmp eax, ebx
je 0x46bedf
push eax
call fcn.0044ecf5
pop ecx
test eax, eax
je 0x46bedf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49d164]
call fcn.0044ecf5
pop ecx
test eax, eax
je 0x46beff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46bf01
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x47a598
Capabilities:
Read file via mapping

Disassembly:
push edi
push str.KZ_Config_Integration_
push 0x10000
xor edi, edi
push edi
push 0x8000004
push edi
push 0xffffffffffffffff
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov dword [esi], eax
cmp eax, edi
je 0x47a5cf
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [esi + 8], eax
mov eax, esi
pop edi
ret
Function at 0x47a5d3
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1c8]
sub esp, 0x248
mov eax, dword [0x49a0d0]
xor eax, ebp
mov dword [ebp + 0x1c4], eax
mov eax, dword [ebp + 0x1d0]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push ebx
mov dword [ecx], edx
push dword [eax + 8]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push 0
push 0
lea ebx, [ebp - 0x44]
call fcn.004801c5
pop ebx
test eax, eax
jne 0x47a691
push 0x490020
lea eax, [ebp - 0x44]
push 0x104
push eax
call fcn.0044c5cf
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47a691
push 0x38
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0044d300
and dword [ebp - 0x64], 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x70], eax
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x6c], str._KZsetup_integration
mov dword [ebp - 0x7c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x47a691
push 0xffffffffffffffff
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
jmp 0x47a693
xor eax, eax
mov ecx, dword [ebp + 0x1c4]
xor ecx, ebp
call fcn.004498d8
add ebp, 0x1c8
leave
ret 4

Function at 0x47a6b3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x11
pop esi
call fcn.0047b8e9
xor esi, esi
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x47a768
mov ebx, dword [0x49f834]
mov dword [ebp - 8], esi
mov edi, 0x49f828
lea esi, [ebp - 0x18]
call fcn.00403fcd
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jmp 0x47a73e
lea esi, [ebp - 0x10]
call fcn.0040b4f3
cmp dword [eax + 0x18], 8
jb 0x47a71f
mov eax, dword [eax + 4]
jmp 0x47a722
add eax, 4
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea esi, [ebp - 0x10]
call fcn.0040b51b
mov ebx, dword [0x49f838]
mov edi, 0x49f828
lea esi, [ebp - 0x18]
call fcn.00403fcd
mov edi, esi
lea esi, [ebp - 0x10]
call fcn.0040b319
test al, al
je 0x47a70c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47b6e4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x490844
push dword [ebp + 8]
mov esi, eax
call fcn.0044ad0a
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x47b70a
xor eax, eax
jmp 0x47b7c2
cmp byte [esi], bl
je 0x47b713
call fcn.0047b2df
push edi
push dword [ebp + 8]
lea edi, [esi + 4]
push 1
push 0x68
push edi
call fcn.0044c28c
push 0xf
push 0x49084c
push edi
call fcn.0044c2a9
add esp, 0x1c
test eax, eax
je 0x47b73f
xor eax, eax
jmp 0x47b7c1
mov eax, dword [esi + 0x68]
mov dword [esi + 0x74], eax
mov eax, esi
call fcn.0047b458
cmp dword [esi + 0x68], ebx
jbe 0x47b7b5
push dword [ebp + 8]
mov eax, dword [esi + 0x6c]
mov edi, ebx
push 1
shl edi, 3
add eax, edi
push 8
push eax
call fcn.0044c28c
mov eax, dword [esi + 0x6c]
mov eax, dword [edi + eax]
inc eax
push eax
call fcn.0044bdab
mov ecx, dword [esi + 0x6c]
mov dword [edi + ecx + 4], eax
mov eax, dword [esi + 0x6c]
add eax, edi
mov ecx, dword [eax]
inc ecx
push ecx
push 0
push dword [eax + 4]
call fcn.0044d300
push dword [ebp + 8]
mov eax, dword [esi + 0x6c]
add eax, edi
push 1
push dword [eax]
push dword [eax + 4]
call fcn.0044c28c
add esp, 0x30
mov edx, ebx
mov edi, esi
call fcn.0047b4c6
inc ebx
cmp ebx, dword [esi + 0x68]
jb 0x47b751
push dword [ebp + 8]
call fcn.0044b2c4
xor eax, eax
pop ecx
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x47c0f1
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x14
mov eax, 0x48164b
call fcn.0044daf6
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0xc]
xor eax, eax
inc eax
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
jae 0x47c120
lea ecx, [ebp + 0xc]
push ebx
push 0x80
push 3
lea edx, [ebp - 0x20]
push edx
push eax
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x47c19a
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [esi], eax
inc eax
push eax
call fcn.004498c2
pop ecx
push ebx
lea ecx, [ebp - 0x14]
push ecx
mov dword [edi], eax
push dword [esi]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x47c18e
mov dword [ebp - 0x14], ebx
xor esi, esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00402548
mov eax, esi
call fcn.0044dbce
ret
mov eax, dword [esi]
mov ecx, dword [edi]
xor esi, esi
mov byte [eax + ecx], bl
inc esi
jmp 0x47c172
xor esi, esi
jmp 0x47c17b
Function at 0x47c421
Capabilities:
Check http status code
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push str.VsyDownload_1.0
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x10], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
je 0x47c470
push edi
push 0x84000002
push edi
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, edi
jne 0x47c477
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x20000013
push ebx
call esi
test eax, eax
jne 0x47c498
mov dword [ebp - 0xc], edi
cmp dword [ebp - 0xc], 0xc8
je 0x47c4a6
push dword [ebp - 0x1c]
jmp 0x47c46a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0x20000005
push ebx
call esi
test eax, eax
jne 0x47c4c1
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.004498c2
mov ebx, eax
mov eax, dword [ebp - 4]
inc eax
push eax
push edi
push ebx
call fcn.0044d300
mov eax, dword [ebp + 0xc]
add esp, 0x10
cmp eax, edi
je 0x47c4e5
mov dword [eax], ebx
xor esi, esi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [ebp - 4]
sub eax, esi
mov ecx, 0x400
cmp eax, ecx
jb 0x47c501
mov eax, ecx
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetReadFile]
add esi, dword [ebp - 8]
cmp dword [ebp - 8], edi
ja 0x47c4e7
push dword [ebp - 0x18]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
cmp dword [ebp + 0xc], edi
jne 0x47c537
push ebx
call fcn.0044a3fd
pop ecx
xor eax, eax
inc eax
jmp 0x47c472

Function at 0x47c7b1
Capabilities:
Create thread
Get common file path

Disassembly:
push ebx
xor ebx, ebx
cmp esi, ebx
je 0x47c82c
cmp dword [esi + 4], ebx
jne 0x47c82c
cmp dword [esi], ebx
je 0x47c82c
push edi
push 0x20a
call fcn.004498c2
mov dword [esp], 0x105
push ebx
push eax
mov dword [esi + 4], eax
call fcn.0044d300
add esp, 0xc
push dword [esi + 4]
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push dword [esi + 4]
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [0x49f788]
inc dword [0x49f788]
push ebx
push ebx
push esi
push 0x47c762
push 0xa
push ebx
lea edi, [edi*4 + 0x49f688]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [edi], eax
xor eax, eax
pop edi
inc eax
pop ebx
ret
xor eax, eax
pop ebx
ret