joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4347d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov ecx, eax
test eax, eax
jne 0x4347ed
xor ebx, ebx
mov dword [ebp - 0xc], ebx
jmp 0x434805
cmp byte [eax], 0
je 0x4347f8
inc ecx
cmp byte [ecx], 0
jne 0x4347f2
sub ecx, eax
and ecx, 0x3fffffff
mov ebx, ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [edx + 4]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
jle 0x4348f7
mov ecx, dword [edx + 8]
mov dword [ebp - 0x10], ecx
push edi
nop
cmp eax, 2
mov ecx, eax
jge 0x43482a
xor ecx, 1
mov edx, dword [ebp - 0x10]
shl ecx, 4
mov edi, dword [ecx + edx + 0xc]
add ecx, edx
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x434888
mov esi, dword [ecx]
mov cl, byte [edx]
test cl, cl
je 0x434870
jmp 0x434850
movzx eax, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x526b78]
cmp cl, byte [eax + 0x526b78]
jne 0x43486d
mov cl, byte [edx + 1]
inc edx
inc esi
test cl, cl
jne 0x434850
mov eax, dword [ebp - 4]
movzx edx, byte [edx]
movzx ecx, byte [esi]
movzx ecx, byte [ecx + 0x526b78]
movzx edx, byte [edx + 0x526b78]
sub edx, ecx
jne 0x4348e6
cmp dword [edi + 0x20], 0
lea esi, [edi + 0x14]
je 0x4348c4
mov ecx, dword [ebp + 8]
xor eax, eax
mov edx, ebx
test ebx, ebx
jle 0x4348be
lea esp, [esp]
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x526b78]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x4348a0
mov ebx, dword [ebp - 0xc]
xor edx, edx
div dword [esi]
jmp 0x4348c6
xor edx, edx
mov eax, dword [ebp + 8]
push ebx
push eax
mov eax, esi
call fcn.004099d0
add esp, 8
test eax, eax
je 0x4348fd
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4348f6
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
jl 0x434820
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 0
jmp 0x4348e3
Function at 0x439300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [edx]
xor esi, esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
lea esp, [esp]
test edi, edi
je 0x4393b8
cmp byte [edi], 0
mov eax, edi
je 0x439336
nop
inc eax
cmp byte [eax], 0
jne 0x439330
sub eax, edi
and eax, 0x3fffffff
cmp dword [ebx + 0x19c], 0
lea ecx, [ebx + 0x190]
mov esi, eax
je 0x439391
xor eax, eax
mov edx, esi
mov ecx, edi
test esi, esi
jle 0x439381
jmp 0x439360
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x526b78]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x439360
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 8]
xor edx, edx
div dword [ebx + 0x190]
lea ecx, [ebx + 0x190]
jmp 0x439393
xor edx, edx
push esi
push edi
mov eax, ecx
call fcn.004099d0
add esp, 8
test eax, eax
je 0x4393ae
mov eax, dword [eax + 8]
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
jmp 0x4393bb
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
xor eax, eax
jmp 0x4393bb
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x4393cd
movzx ecx, byte [esi + 0x5273c8]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4 - 0x14]
cmp dword [eax + 0xc], 0
jne 0x4393ec
inc esi
cmp esi, 3
mov dword [ebp - 4], esi
jl 0x439320
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov ecx, dword [eax + 0xc]
pop edi
mov dword [edx + 0xc], ecx
mov eax, dword [eax + 0x10]
pop esi
mov dword [edx + 0x10], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43eaf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push ebx
xor eax, eax
test dword [edx + 0xc], 0x4000000
push esi
push edi
mov dword [ebp - 4], eax
je 0x43ec38
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx + 0x24]
test edi, edi
je 0x43eb58
lea ebx, [ebx]
mov eax, dword [edi + 0x14]
test eax, eax
jle 0x43eb4e
lea edx, [edi + 0x24]
mov esi, eax
lea esp, [esp]
mov ecx, dword [edx]
cmp ecx, 0x1f
jle 0x43eb3c
or eax, 0xffffffff
jmp 0x43eb43
mov eax, 1
shl eax, cl
or dword [ebp - 4], eax
add edx, 8
sub esi, 1
jne 0x43eb30
mov edi, dword [edi + 4]
test edi, edi
jne 0x43eb20
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 4]
mov eax, esi
test esi, esi
jne 0x43eb68
xor edi, edi
mov dword [ebp - 8], edi
jmp 0x43eb82
cmp byte [esi], 0
je 0x43eb76
lea ecx, [ecx]
inc eax
cmp byte [eax], 0
jne 0x43eb70
sub eax, esi
and eax, 0x3fffffff
mov edi, eax
mov dword [ebp - 8], eax
mov ebx, dword [ecx + 0x44]
add ebx, 0x34
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0xc], ebx
je 0x43ebc7
xor eax, eax
mov edx, edi
mov ecx, esi
test edi, edi
jle 0x43ebc1
jmp 0x43eba0
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x526b78]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x43eba0
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
xor edx, edx
div dword [ebx]
jmp 0x43ebc9
xor edx, edx
push edi
push esi
mov eax, ebx
call fcn.004099d0
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x43ec35
mov edi, dword [eax + 8]
cmp edi, ebx
je 0x43ec35
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push ecx
push edx
xor eax, eax
mov dword [ebp - 8], ebx
call fcn.0043d130
mov eax, dword [ebp - 8]
add esp, 0x10
cmp eax, ebx
je 0x43ec2e
mov ecx, dword [eax + 4]
cmp ecx, ebx
jle 0x43ec2e
mov edx, dword [eax + 8]
mov esi, ecx
nop
mov ecx, dword [edx]
cmp ecx, 0x1f
jle 0x43ec1c
or eax, 0xffffffff
jmp 0x43ec23
mov eax, 1
shl eax, cl
or dword [ebp - 4], eax
add edx, 4
sub esi, 1
jne 0x43ec10
mov edi, dword [edi + 0xc]
cmp edi, ebx
jne 0x43ebe2
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f5c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x53f4a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x45f66f
push edi
lea edi, [esi + 0x24]
push 0
mov ecx, edi
call fcn.004bd4f0
test al, al
jne 0x45f651
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
mov dword [esi + 0x68], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x20c]
push 0x5c
push ecx
call fcn.004ea4e0
mov byte [eax], 0
mov edx, dword [esi + 4]
push edx
lea eax, [ebp - 0x20c]
push eax
push str._sSRPFT.exe__d
mov ecx, eax
push 0x208
push ecx
call fcn.004ea58a
add esp, 0x1c
push 0
push 0
push 0
lea edx, [ebp - 0x20c]
push edx
mov ecx, edi
call fcn.004bd780
mov eax, dword [esi + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 4

Function at 0x45f980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x45f99b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x45f9d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x45f9d0
jmp 0x45f9c0
cmp esi, eax
jae 0x45f9d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x45f9c0
cmp esi, eax
jb 0x45f9db
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x461220
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x53f4a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], esi
test esi, esi
je 0x4613f4
cmp word [esi], 0
je 0x4613f4
push 5
push str.file:
push esi
call fcn.004eb575
add esp, 0xc
test eax, eax
jne 0x46127d
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret
push 5
push str.http:
push esi
call fcn.004eb575
add esp, 0xc
test eax, eax
je 0x46126c
push 6
push str.https:
push esi
call fcn.004eb575
add esp, 0xc
test eax, eax
je 0x46126c
push 4
push str.res:
push esi
call fcn.004eb575
add esp, 0xc
test eax, eax
jne 0x4612c2
add esi, 8
mov dword [ebp - 0x218], esi
push ebx
push 0x104
push esi
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ebx, dword [0x5427b4]
lea esi, [ebp - 0x20c]
mov edx, esi
push 0x2f
push edx
mov dword [ebp - 0x214], ebx
mov byte [ebp - 0x210], 0
call fcn.004ea650
add esp, 8
test eax, eax
je 0x461338
lea edx, [ebp - 0x20c]
xor ecx, ecx
push edx
lea esi, [eax + 2]
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x461338
test al, 0x10
jne 0x461338
push 2
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.00460650
mov ebx, dword [ebp - 0x214]
push edi
push 0x2e
push esi
call fcn.004ea650
mov edi, eax
add esp, 8
test edi, edi
je 0x46136a
xor ecx, ecx
add edi, 2
mov word [edi - 2], cx
je 0x46136a
push 0x50dc00
push edi
call fcn.004eb4e2
add esp, 8
test eax, eax
je 0x46136a
push edi
jmp 0x46136c
push 0x17
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4613d6
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46139f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x46139f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x4613c0
lea ecx, [ebp - 0x214]
call fcn.004971d0
pop edi
pop ebx
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x21c]
push edi
push edx
push eax
call dword [sym.imp.htmlayout.dll_HTMLayoutDataReady]
lea ecx, [ebp - 0x214]
call fcn.004971d0
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret
Function at 0x462870
Capabilities:
Hide graphical window

Disassembly:
mov eax, 8
push esi
mov esi, ecx
mov ecx, dword [0x5424bc]
cmp dword [0x5424d0], eax
jae 0x46288b
mov ecx, 0x5424bc
cmp dword [0x5424ec], eax
mov eax, dword [0x5424d8]
jae 0x46289d
mov eax, 0x5424d8
push 4
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x4628f6
mov eax, dword [esi + 0x78]
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4628d5
mov ecx, dword [eax + 4]
push 5
push ecx
call edi
mov edx, dword [esi + 4]
push 0
push edx
call ebx
mov ecx, dword [esi + 0x7c]
call fcn.0048d3f0
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4628f4
mov eax, dword [eax + 4]
push 0
push eax
call edi
mov ecx, dword [esi + 4]
push 1
push ecx
call ebx
pop edi
pop ebx
pop esi
ret

Function at 0x46de50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x318], 5
jbe 0x46df31
mov eax, dword [0x5427f0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5427f0
call edx
add eax, 0x10
mov dword [ebp - 4], eax
push str.srupdater.exe
lea eax, [esi + 0x33c]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0046d520
mov ecx, 8
add esp, 0xc
cmp dword [esi + 0x338], ecx
jb 0x46dea8
mov eax, dword [esi + 0x324]
jmp 0x46deae
lea eax, [esi + 0x324]
cmp dword [esi + 0x31c], ecx
jb 0x46debe
mov esi, dword [esi + 0x308]
jmp 0x46dec4
add esi, 0x308
mov edx, dword [0x541a40]
push edi
push eax
push edx
push esi
lea eax, [ebp - 4]
push str.__s____s_v_s_..._
push eax
call fcn.0046cc40
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
add esp, 0x14
push 5
push 0
push edi
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46df14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
test edx, edx
jg 0x46df31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46fd70
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0xf0], 0
mov dword [esi + 0x1ec], 0
je 0x46fddb
mov eax, dword [esi + 0x13c]
mov ecx, dword [esi + 0x138]
test eax, eax
je 0x46fdc7
test ecx, ecx
je 0x46fdc7
mov edx, dword [esi + 0xf0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.htmlayout.dll_HTMLayoutSetElementHtml]
mov ecx, esi
call fcn.0046df40
xor eax, eax
pop esi
ret 0x10
mov eax, dword [esi + 0xf0]
push 0
push 0x52a4dc
push eax
call dword [sym.imp.htmlayout.dll_HTMLayoutSetElementInnerText16]
mov ecx, esi
call fcn.0046df40
xor eax, eax
pop esi
ret 0x10
Function at 0x471590
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x53f4a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x33c]
push esi
lea esi, [ecx + 0x33c]
sub eax, 0x10
cmp dword [eax + 0xc], 1
push edi
mov dword [ebp - 0x24], ecx
jle 0x4715c5
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00460a30
mov edx, dword [esi]
xor ecx, ecx
mov eax, edx
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], cx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4715e0
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x20]
call fcn.00403060
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x471614
push ecx
push eax
call fcn.004eb0bf
add esp, 8
test eax, eax
jl 0x4716ee
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4716ee
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
push 1
xor ecx, ecx
push 0xffffffffffffffff
mov word [edx + eax*2], cx
push 0x50f2fc
lea ecx, [ebp - 0x20]
call fcn.00461050
mov edx, dword [ebp - 0xc]
dec edx
cmp eax, edx
je 0x471652
push 1
push 0x50f2fc
lea ecx, [ebp - 0x20]
call fcn.00468840
push 0xe
push str.unlockroot.exe
lea ecx, [ebp - 0x20]
call fcn.00468840
mov eax, dword [ebp - 0x1c]
mov esi, 8
cmp dword [ebp - 8], esi
jae 0x471671
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47169e
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], esi
jae 0x471688
lea eax, [ebp - 0x1c]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4716cd
push 1
sub esp, 0x1c
mov ecx, esp
push 0x14
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
push str.http:__www.007sj.com
mov word [ecx + 4], ax
call fcn.00403060
mov ecx, dword [ebp - 0x24]
call fcn.00471160
cmp dword [ebp - 8], esi
jb 0x4716de
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004ea481
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0045f890
int3
Function at 0x471700
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x53f4a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x234], 0x208
mov dword [ebp - 0x238], 1
call fcn.004eb2d0
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push 0x20019
push 0
push str.SOFTWAREwmdesktop
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x471795
lea edx, [ebp - 0x234]
push edx
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x238]
push ecx
push 0
push 0x50f300
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 7
mov dword [ebp - 0x214], 0
mov word [ebp - 0x224], cx
lea edx, [eax + 2]
jmp 0x4717c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4717c0
push esi
sub eax, edx
push edi
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x228]
call fcn.00403060
mov eax, dword [ebp - 0x224]
mov edi, 8
cmp dword [ebp - 0x210], edi
jae 0x4717fd
lea eax, [ebp - 0x224]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
cmp eax, 0xffffffff
je 0x471869
mov eax, dword [ebp - 0x224]
cmp dword [ebp - 0x210], edi
jae 0x47181f
lea eax, [ebp - 0x224]
push eax
call esi
test al, 0x10
je 0x471869
push 1
push 0xffffffffffffffff
push 0x50f2fc
lea ecx, [ebp - 0x228]
call fcn.00461050
mov ecx, dword [ebp - 0x214]
dec ecx
cmp eax, ecx
je 0x471857
push 1
push 0x50f2fc
lea ecx, [ebp - 0x228]
call fcn.00468840
push 0xd
push str.WMDesktop.exe
lea ecx, [ebp - 0x228]
call fcn.00468840
mov eax, dword [ebp - 0x224]
cmp dword [ebp - 0x210], edi
jae 0x47187d
lea eax, [ebp - 0x224]
push eax
call esi
cmp eax, 0xffffffff
je 0x4718af
mov eax, dword [ebp - 0x224]
cmp dword [ebp - 0x210], edi
jae 0x471899
lea eax, [ebp - 0x224]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x471924
mov edx, dword [0x5427f0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5427f0
call eax
mov esi, eax
push 0
add esi, 0x10
push 0x88
mov dword [ebp - 0x22c], esi
call fcn.0045f9f0
add esp, 8
test eax, eax
je 0x4718f4
push 0x88
push eax
lea ecx, [ebp - 0x22c]
call fcn.00467270
mov esi, dword [ebp - 0x22c]
push 5
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471924
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x210], edi
pop edi
pop esi
jb 0x47193d
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.004ea481
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret
Function at 0x4795e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xf0], 0
lea ebx, [esi + 0xf0]
je 0x4797eb
mov eax, dword [esi + 0x3c]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x479610
mov eax, dword [eax + 4]
push 0
push eax
call edi
mov eax, dword [esi + 0x30]
test eax, eax
je 0x47961f
mov ecx, dword [eax + 4]
push 0
push ecx
call edi
mov eax, dword [esi + 0x34]
test eax, eax
je 0x47962e
mov edx, dword [eax + 4]
push 0
push edx
call edi
mov eax, dword [esi + 0x38]
test eax, eax
je 0x47963d
mov eax, dword [eax + 4]
push 0
push eax
call edi
mov eax, dword [esi + 0x58]
test eax, eax
je 0x47964c
mov ecx, dword [eax + 4]
push 0
push ecx
call edi
mov eax, dword [ebp + 8]
cmp eax, 3
ja case.default.0x479658
jmp dword [eax*4 + 0x4797f4]
cmp dword [esi + 0x1ec], 0
jne 0x479691
mov edx, dword [esi + 0x138]
mov eax, dword [esi + 0x13c]
push 0
push edx
push eax
mov ecx, ebx
call fcn.00461df0
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx + 4]
push 0
push edx
call edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [esi + 0x58]
mov ecx, dword [eax + 4]
push 5
push ecx
call edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
cmp dword [ebx], 0
je 0x4796bf
mov edx, dword [esi + 0x158]
mov eax, dword [esi + 0x15c]
push 0
push edx
push eax
mov ecx, ebx
call fcn.00461df0
cmp dword [esi + 0x1f0], 0
mov eax, dword [esi + 0x30]
jne 0x4796f4
test eax, eax
je 0x4797ea
mov ecx, dword [eax + 4]
push 5
push ecx
call edi
mov ecx, dword [esi + 0x30]
call fcn.004ac6c0
pop edi
mov dword [esi + 0x1f0], 1
pop esi
pop ebx
pop ebp
ret 4
test eax, eax
je 0x479700
mov edx, dword [eax + 4]
push 5
push edx
call edi
cmp dword [esi + 0x1f0], 2
jne 0x4797ea
mov ecx, esi
call fcn.00466270
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [esi + 0x160]
mov ecx, dword [esi + 0x164]
push 0
push eax
push ecx
mov ecx, ebx
call fcn.00461df0
mov eax, dword [esi + 0x38]
test eax, eax
je 0x479741
mov edx, dword [eax + 4]
push 5
push edx
call edi
cmp dword [esi + 0x1f4], 0
jne 0x4797ea
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x1f4], 1
call fcn.004ac6c0
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [esi + 0x168]
mov ecx, dword [esi + 0x16c]
push 0
push eax
push ecx
mov ecx, ebx
call fcn.00461df0
cmp dword [esi + 0x1f8], 0
jne 0x4797a4
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x479796
mov edx, dword [eax + 4]
push 5
push edx
call edi
mov ecx, esi
call fcn.00478820
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4797b3
mov eax, dword [eax + 4]
push 5
push eax
call edi
cmp dword [esi + 0x1f8], 2
mov ecx, esi
jne 0x4797cc
push 1
call fcn.00466360
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0
call fcn.00466360
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov ecx, dword [ebx]
push 0
push 0x52a4dc
push ecx
call dword [sym.imp.htmlayout.dll_HTMLayoutSetElementInnerText16]
pop edi
pop esi
pop ebx
pop ebp
ret 4