joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18028941
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov bl, cl
push edi
mov byte [ebp - 0x31], bl
call fcn.18026830
test al, al
je 0x1802896c
mov eax, 0x80004005
jmp 0x18028b15
xor edi, edi
mov dword [ebp - 0x28], 0x1819d2d0
lea edx, [ebp - 0x28]
mov dword [ebp - 0x24], edi
mov cl, bl
call fcn.1802841a
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], edi
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], edi
call fcn.1801577d
mov dword [ebp - 0x20], 0x1819d20c
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x200
call fcn.1801fa5a
mov eax, str.HKLMSoftwareMicrosoftEdgeUpdate_
test bl, bl
jne 0x180289b8
mov eax, str.HKCUSoftwareMicrosoftEdgeUpdate_
push edi
push ecx
push 0xf003f
push ecx
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1801a138
mov ebx, eax
test ebx, ebx
js 0x18028ad5
push edi
push edi
push edi
push edi
push 0x181a6648
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180289f1
mov ebx, edi
jmp 0x18028ad5
mov dword [ebp - 8], edi
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
lea ecx, [ebp - 8]
call fcn.1800ec6c
mov esi, dword [ebp - 8]
test eax, eax
js 0x18028ac7
xor ebx, ebx
lea ecx, [ebp - 0x20]
inc ebx
push ebx
push esi
push 0x181a6648
call fcn.1801aa22
test eax, eax
js 0x18028ac7
mov ecx, 0x181d11e0
call fcn.18026921
lea ecx, [ebp - 0x20]
call fcn.180288d6
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.18028147
mov edi, dword [ebp - 0x14]
test eax, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
js 0x18028a87
cmp edi, eax
je 0x18028a87
sub esp, 0xc
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.180253fa
mov cl, byte [ebp - 0x31]
call fcn.1802848f
mov edi, dword [ebp - 0x14]
mov ebx, eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x38], eax
test edi, edi
je 0x18028acb
cmp edi, eax
je 0x18028aa9
mov esi, dword [ebp - 0x38]
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.18006f52
add edi, 4
cmp edi, esi
jne 0x18028a92
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
sub eax, edi
and eax, 0xfffffffc
push eax
push edi
call fcn.1800a1cd
xor edi, edi
pop ecx
pop ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
jmp 0x18028acd
mov ebx, eax
jmp 0x18028acd
xor edi, edi
lea ecx, [esi - 0x10]
call fcn.18006f52
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0x1819d20c
je 0x18028af5
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x200
lea ecx, [ebp - 0x30]
call fcn.180157a8
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x1819d2d0
je 0x18028b13
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret
Function at 0x1803f03a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov esi, ecx
call fcn.1801fa5a
cmp byte [esi + 0x8c], 0
mov eax, str.HKLMSoftwareMicrosoftEdgeUpdate_
jne 0x1803f06b
mov eax, str.HKCUSoftwareMicrosoftEdgeUpdate_
push eax
lea ecx, [ebp - 8]
call fcn.180074da
mov edi, dword [ebp - 8]
lea ecx, [ebp - 0x18]
and dword [ebp - 0x14], 0
push 0x20019
push edi
mov dword [ebp - 0x18], 0x1819d20c
mov dword [ebp - 0x10], 0x200
call fcn.1801a28e
mov ebx, eax
mov ecx, ebx
call fcn.1801d0b7
test ebx, ebx
js 0x1803f1e0
lea ecx, [ebp - 0x18]
call fcn.1801b25e
test eax, eax
je 0x1803f1db
push str.Clients
lea ecx, [ebp - 0x18]
call fcn.1801a2f0
test al, al
je 0x1803f1db
push str.ClientState
lea ecx, [ebp - 0x18]
call fcn.1801a2f0
test al, al
je 0x1803f1db
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.version
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1803f1db
push ebx
push ebx
push ebx
push ebx
push str.path
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1803f1db
mov dword [ebp - 8], ebx
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
lea eax, [ebp - 8]
push eax
push str.version
lea ecx, [ebp - 0x18]
call fcn.1801a873
mov ebx, eax
mov ecx, ebx
call fcn.1801d0b7
test ebx, ebx
js 0x1803f1ce
and dword [ebp - 0x1c], 0
call fcn.1801fa5a
cmp byte [esi + 0x8c], 0
mov eax, str.HKLMSoftwareMicrosoftEdgeUpdateClientsF3C4FE00_EFD5_403B_9569_398A20F1BA4A
jne 0x1803f167
mov eax, str.HKCUSoftwareMicrosoftEdgeUpdateClientsF3C4FE00_EFD5_403B_9569_398A20F1BA4A
push eax
lea ecx, [ebp - 0x1c]
call fcn.180074da
and dword [ebp - 0xc], 0
call fcn.18006f7b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800768f
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
mov edx, 0x181a6d7c
mov ecx, esi
call fcn.1801cac1
pop ecx
mov ebx, eax
mov ecx, ebx
call fcn.1801d0b7
test ebx, ebx
js 0x1803f1bb
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.18009bef
test al, al
je 0x1803f1b9
mov ebx, 0xa043090b
jmp 0x1803f1bb
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
lea ecx, [esi - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
jmp 0x1803f1e0
mov ebx, 0x80070003
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x1819d20c
je 0x1803f201
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x200
lea ecx, [edi - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret
Function at 0x1804859c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [ebp - 0x14], 0
push ebx
push esi
mov byte [ebp - 0x41], cl
mov bh, dl
push edi
lea ecx, [ebp - 0x14]
call fcn.18014de5
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
and dword [ebp - 0x10], 0
push edi
call fcn.180074da
mov bl, byte [ebp + 8]
mov eax, str.MicrosoftEdgeComRegisterShellARM64.exe
test bl, bl
jne 0x180485e1
mov eax, str.MicrosoftEdgeUpdateComRegisterShell64.exe
push eax
lea ecx, [ebp - 0x10]
call fcn.1800f7d5
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x180485fd
call fcn.1801baa5
mov ebx, eax
jmp 0x180486ff
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18048612
mov ebx, 0x80070002
jmp 0x180486ff
and dword [ebp - 0xc], 0
call fcn.18006f7b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800768f
mov eax, 0x18172bcc
mov edx, eax
test bh, bh
jne 0x18048634
mov edx, str._unregister
cmp byte [ebp - 0x41], 0
mov ecx, eax
jne 0x18048641
mov ecx, str._user
test bl, bl
je 0x1804864a
mov eax, str._arm64
push edx
push ecx
push eax
lea eax, [ebp - 0xc]
push str._s__s__s
push eax
call fcn.18016b1d
add esp, 0x14
lea eax, [ebp - 0x40]
push 0x2c
push 0
push eax
call fcn.18132f50
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.18017792
push 0
push dword [ebp - 0xc]
lea ecx, [ebp - 0x40]
call fcn.18017900
mov ebx, eax
test ebx, ebx
jns 0x180486cc
movzx ecx, byte [0x181d605a]
neg ecx
sbb ecx, ecx
and ecx, 0x181d5f50
je 0x180486ec
push 7
pop edx
push 0xfffffffffffffffe
pop eax
lfence
push eax
push edx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], eax
call fcn.18008b3f
push ebx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x54]
push str._Failed_to_start_COM_register_process__0x_x_
push eax
call fcn.18007210
add esp, 0xc
jmp 0x180486ec
push 0x7530
lea ecx, [ebp - 0x40]
call fcn.18017a54
movzx ebx, al
neg ebx
sbb ebx, ebx
and ebx, 0x7ff8fa4c
add ebx, 0x800705b4
lea ecx, [ebp - 0x40]
call fcn.180178b8
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
lea ecx, [esi - 0x10]
call fcn.18006f52
lea ecx, [edi - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret
Function at 0x1804db7e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
lea edi, [ebp - 0x60]
push 0x14
pop ecx
mov esi, str.____________________________________.dmp
lea edx, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, dword [eax + 4]
movsw word es:[edi], word [esi]
xor esi, esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
call fcn.180108e6
mov ebx, eax
pop ecx
test ebx, ebx
jns 0x1804dbd1
mov edi, dword [ebp - 0x68]
mov esi, dword [ebp - 0x6c]
jmp 0x1804dc9e
call fcn.18011f7e
mov edi, dword [ebp - 0x68]
mov ebx, esi
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
mov eax, edi
sub eax, esi
mov dword [ebp - 0x7c], edx
cmp eax, 4
jb 0x1804dc9c
push ecx
xor edi, edi
lea edx, [ebp - 0x74]
push ecx
mov ecx, dword [esi + ebx*4]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
call fcn.18010ecd
pop ecx
pop ecx
test eax, eax
js 0x1804dc86
mov edx, dword [ebp - 0x70]
xor ecx, ecx
or ecx, dword [ebp - 0x74]
or edx, edi
mov eax, dword [ebp - 0x78]
sub eax, ecx
mov dword [ebp - 0x90], edi
mov ecx, dword [ebp - 0x7c]
sbb ecx, edx
mov dword [ebp - 0x88], eax
mov eax, ecx
and ecx, 0x7fffffff
mov dword [ebp - 0x84], ecx
and eax, 0x80000000
fild qword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
push ecx
push ecx
fild qword [ebp - 0x90]
fchs
faddp st(1)
fstp qword [ebp - 0x98]
fld qword [ebp - 0x98]
fstp qword [esp]
call fcn.181406a6
fcomp qword [0x181c6e88]
fnstsw ax
pop ecx
pop ecx
test ah, 1
jne 0x1804dc86
mov eax, dword [ebp - 0x6c]
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x68]
inc ebx
mov esi, dword [ebp - 0x6c]
mov eax, edi
sub eax, esi
sar eax, 2
cmp ebx, eax
jne 0x1804dbf1
xor ebx, ebx
test esi, esi
je 0x1804dccb
cmp esi, edi
je 0x1804dcba
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.18006f52
add esi, 4
cmp esi, edi
jne 0x1804dca6
mov esi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x64]
sub ecx, esi
and ecx, 0xfffffffc
push ecx
push esi
call fcn.1800a1cd
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret
Function at 0x1804e2a5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x181d000c]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x1e], 0
mov dword [edi], 0x1819d9f4
je 0x1804e2cf
call fcn.1804e8cf
and dword [esp + 0x14], 0
lea ecx, [edi + 4]
and dword [esp + 0x18], 0
mov eax, dword [ecx]
xchg dword [ecx], eax
add eax, 4
lea ecx, [esp + 0x14]
push eax
call fcn.1801577d
lea edx, [edi + 0x3c]
xor ebx, ebx
mov eax, dword [edx + 4]
mov ecx, dword [edx]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x1804e331
mov eax, dword [ecx + ebx*4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1804e322
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x181623e8]
mov ecx, dword [esp + 0x14]
call esi
lea edx, [edi + 0x3c]
mov eax, dword [edx + 4]
inc ebx
mov ecx, dword [edx]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x1804e300
lea edx, [edi + 0x48]
xor ebx, ebx
mov eax, dword [edx + 4]
mov ecx, dword [edx]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x1804e375
mov eax, dword [ecx + ebx*4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1804e366
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x181623e8]
mov ecx, dword [esp + 0x14]
call esi
lea edx, [edi + 0x48]
mov eax, dword [edx + 4]
inc ebx
mov ecx, dword [edx]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x1804e344
mov ebx, dword [edi + 0x38]
and dword [edi + 0x38], 0
test ebx, ebx
je 0x1804e392
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x181623e8]
mov ecx, ebx
call esi
lea eax, [edi + 4]
mov ecx, dword [eax]
xchg dword [eax], ecx
call fcn.18066684
lea ecx, [esp + 0x14]
call fcn.180157a8
mov ecx, dword [edi + 0x98]
sub ecx, 0x10
call fcn.18006f52
lea ecx, [edi + 0x88]
mov esi, 0x1819d1e8
mov dword [ecx], esi
call fcn.1800bb80
lea ecx, [edi + 0x78]
mov dword [ecx], esi
call fcn.1800bb80
lea ecx, [edi + 0x68]
mov dword [ecx], esi
call fcn.1800bb80
lea ecx, [edi + 0x58]
mov dword [ecx], esi
call fcn.1800bb80
lea ecx, [edi + 0x54]
call fcn.1803fc59
lea ecx, [edi + 0x48]
call fcn.1800fc91
lea ecx, [edi + 0x3c]
call fcn.1800fc91
mov ebx, dword [edi + 0x38]
test ebx, ebx
je 0x1804e416
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x181623e8]
mov ecx, ebx
call esi
mov ecx, dword [edi + 0x30]
push 0x10
pop ebx
sub ecx, ebx
call fcn.18006f52
mov ecx, dword [edi + 0x2c]
sub ecx, ebx
call fcn.18006f52
mov ecx, dword [edi + 0x28]
sub ecx, ebx
call fcn.18006f52
mov ecx, dword [edi + 0x18]
sub ecx, ebx
call fcn.18006f52
mov ecx, dword [edi + 0x14]
sub ecx, ebx
call fcn.18006f52
mov ecx, dword [edi + 0x10]
sub ecx, ebx
call fcn.18006f52
lea ecx, [edi + 8]
call fcn.18051001
lea ecx, [edi + 4]
call fcn.1804e0ee
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1811e2a8
mov esp, ebp
pop ebp
ret
Function at 0x1806a140
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x181d000c]
xor eax, esp
mov dword [esp + 0x270], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x250
mov dword [esp + 0x14], eax
xor edi, edi
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], edx
mov ebx, ecx
push edi
push eax
mov dword [esp + 0x18], ebx
call fcn.18132f50
add esp, 0xc
lea ecx, [esp + 0x20]
mov edx, ebx
push 0x181a0ed0
call fcn.18009c81
pop ecx
lea ecx, [esp + 0x28]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [esp + 0x20]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18006f52
cmp esi, 0xffffffff
jne 0x1806a1e0
call fcn.1801baa5
mov ebx, eax
mov edi, ebx
cmp esi, 0xffffffff
je 0x1806a1c9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x27c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1811e2a8
mov esp, ebp
pop ebp
ret
mov ebx, edi
mov eax, dword [esp + 0x1c]
sub eax, edi
je 0x1806a280
sub eax, 1
je 0x1806a22a
sub eax, 1
jne 0x1806a2ec
cmp dword [esp + 0x28], 0x80
je 0x1806a211
test byte [esp + 0x28], 0x10
jne 0x1806a2e4
push dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
call fcn.1806a07b
pop ecx
mov ebx, eax
jmp 0x1806a2e4
test byte [esp + 0x28], 0x10
je 0x1806a2e4
lea ecx, [esp + 0x28]
call fcn.1806a03e
test al, al
jne 0x1806a2e4
lea eax, [esp + 0x54]
mov dword [esp + 0x24], edi
push eax
lea ecx, [esp + 0x18]
call fcn.180074da
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
call fcn.1801647c
pop ecx
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.18006f52
push dword [esp + 0x10]
push 2
pop edx
jmp 0x1806a2cc
test byte [esp + 0x28], 0x10
je 0x1806a2e4
lea ecx, [esp + 0x28]
call fcn.1806a03e
test al, al
jne 0x1806a2e4
lea eax, [esp + 0x54]
mov dword [esp + 0x24], edi
push eax
lea ecx, [esp + 0x1c]
call fcn.180074da
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
call fcn.1801647c
pop ecx
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.18006f52
push dword [esp + 0x10]
xor edx, edx
inc edx
lea ecx, [esp + 0x28]
call fcn.1806a140
pop ecx
mov ecx, dword [esp + 0x24]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.18006f52
test ebx, ebx
js 0x1806a1bb
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1806a1e2
jmp 0x1806a1c2
Function at 0x1806ae22
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
lea ecx, [ebp - 0x14]
lea eax, [edi + 0x14]
push eax
call fcn.1801577d
mov ecx, esi
call fcn.1800c079
mov ecx, eax
mov dword [ebp - 0x27c], eax
or ecx, edx
mov dword [ebp - 0x278], edx
jne 0x1806ae77
mov edi, 0x80070057
jmp 0x1806b068
and dword [ebp - 0xc], 0
call fcn.18006f7b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800768f
call fcn.18006f7b
push eax
lea ecx, [ebp - 0x26c]
call fcn.1800768f
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
call fcn.1806b299
mov ecx, dword [ebp - 8]
mov edi, eax
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.18006f52
test edi, edi
js 0x1806b05d
push 0x250
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.18132f50
add esp, 0xc
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x274]
push 0x181a0ed0
call fcn.18009c81
pop ecx
lea ecx, [ebp - 0x268]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x274]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18006f52
cmp esi, 0xffffffff
jne 0x1806af3c
call fcn.1801baa5
mov edi, eax
jmp 0x1806b05d
lea ecx, [ebp - 0x268]
call fcn.1806a03e
test al, al
jne 0x1806b03e
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x26c]
call fcn.180074da
lea ecx, [ebp - 0x26c]
call fcn.1800c079
mov ecx, dword [ebp - 0x26c]
mov ebx, eax
add ecx, 0xfffffff0
mov edi, edx
call fcn.18006f52
mov ecx, ebx
or ecx, edi
je 0x1806b03e
cmp edi, dword [ebp - 0x278]
ja 0x1806b03e
jb 0x1806afa2
cmp ebx, dword [ebp - 0x27c]
jae 0x1806b03e
and dword [ebp - 8], 0
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x270]
call fcn.180074da
lea eax, [ebp - 0x270]
push eax
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.1801647c
pop ecx
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 8]
call fcn.1800d0b0
movzx ecx, byte [0x181d605a]
mov edi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x181d5f50
je 0x1806b033
push 7
pop ebx
push 3
pop eax
push eax
push ebx
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x284], eax
call fcn.18008b3f
push edi
push dword [ebp - 8]
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x28c]
push str._Purge_version___s__0x_x_
push eax
call fcn.18007210
add esp, 0x10
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1806af3c
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
lea ecx, [ebp - 0x14]
call fcn.180157a8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret 8
Function at 0x1807bae4
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push edi
mov edi, edx
xor edx, edx
push edx
push eax
push edx
push edx
push edi
push ecx
mov dword [ebp - 8], edx
call dword [sym.imp.DNSAPI.dll_DnsQuery_W]
test eax, eax
jne 0x1807bbd9
mov ecx, dword [ebp - 8]
movzx eax, word [ecx + 8]
cmp eax, 5
jne 0x1807bb57
mov eax, dword [ebp + 8]
test eax, eax
je 0x1807bb42
dec eax
mov edx, edi
lfence
mov ecx, dword [ecx + 0x18]
push esi
push eax
call fcn.1807bae4
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov esi, eax
jmp 0x1807bb47
mov esi, 0x251d
push 1
push ecx
call dword [sym.imp.DNSAPI.dll_DnsFree]
mov eax, esi
jmp 0x1807bbd9
xor edi, edi
inc edi
cmp eax, 0x1c
jne 0x1807bb97
movzx eax, word [ecx + 0x26]
push eax
movzx eax, word [ecx + 0x24]
push eax
movzx eax, word [ecx + 0x22]
push eax
movzx eax, word [ecx + 0x20]
push eax
movzx eax, word [ecx + 0x1e]
push eax
movzx eax, word [ecx + 0x1c]
push eax
movzx eax, word [ecx + 0x1a]
push eax
movzx eax, word [ecx + 0x18]
push eax
push 0x181b3628
push esi
call fcn.180471d0
add esp, 0x28
jmp 0x1807bbbe
cmp ax, di
jne 0x1807bbcc
movzx eax, byte [ecx + 0x1b]
push eax
movzx eax, byte [ecx + 0x1a]
push eax
movzx eax, byte [ecx + 0x19]
push eax
movzx eax, byte [ecx + 0x18]
push eax
push 0x181a0e54
push esi
call fcn.180471d0
add esp, 0x18
push edi
push dword [ebp - 8]
call dword [sym.imp.DNSAPI.dll_DnsFree]
xor eax, eax
jmp 0x1807bbd9
push edi
push ecx
call dword [sym.imp.DNSAPI.dll_DnsFree]
mov eax, 0x251d
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1811e2a8
leave
ret
Function at 0x180b15dc
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x1c], edx
xor ebx, ebx
mov byte [ebp - 9], cl
call fcn.1801fa5a
cmp byte [ebp - 9], bl
je 0x180b164c
mov dword [ebp - 0x14], ebx
call fcn.18006f7b
push eax
lea ecx, [ebp - 0x14]
call fcn.1800768f
lea eax, [ebp - 0x14]
push eax
xor eax, eax
lea ecx, [ebp - 0x18]
inc eax
push eax
push str.MicrosoftCrashReports
mov dword [ebp - 0x10], eax
call fcn.180074da
push 0x26
mov edx, eax
pop ecx
call fcn.1801ed62
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x18], ebx
jmp 0x180b1696
mov dword [ebp - 8], ebx
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
lea eax, [ebp - 8]
push eax
push 1
push str.MicrosoftCrashReports
lea ecx, [ebp - 0x10]
call fcn.180074da
push 0x1c
mov edx, eax
pop ecx
call fcn.1801ed62
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov edi, dword [ebp - 8]
mov eax, edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 2
lea ecx, [eax - 0x10]
call fcn.1800a0ba
lea esi, [eax + 0x10]
mov dword [ebp - 8], esi
cmp dword [ebp - 0x18], ebx
je 0x180b16b1
lea ecx, [edi - 0x10]
call fcn.18006f52
cmp dword [ebp - 0x10], ebx
je 0x180b16c1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.18006f52
cmp byte [ebp - 9], bl
je 0x180b16e1
cmp dword [esi - 0xc], ebx
je 0x180b16e6
lea ecx, [ebp - 8]
call fcn.180b146c
mov esi, dword [ebp - 8]
test eax, eax
jns 0x180b16e1
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esi - 0xc], ebx
jne 0x180b1711
lea ecx, [ebp - 0x10]
call fcn.18014fb1
push eax
lea ecx, [ebp - 8]
call fcn.18009e6a
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], ebx
jne 0x180b1711
mov ebx, 0x8004fffc
jmp 0x180b1723
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x180b1723
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call fcn.18009e6a
lea ecx, [esi - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret