joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18059503
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
xor edx, edx
push edi
xor edi, edi
push edi
mov eax, dword [ebx + 0x88]
push 0x80
cmp dword [eax + 0x30], edi
setne dl
lea edx, [edx*2 + 2]
push edx
push edi
push edi
push 0x40000000
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x180595bf
mov eax, dword [ebx + 0x88]
cmp dword [eax + 0x30], edi
je 0x180595db
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x180595c8
cmp eax, 0x7fffffff
ja 0x180595c8
mov edx, dword [ebx + 0x88]
push edi
cmp eax, dword [edx + 0x30]
mov ecx, dword [edx + 0x34]
mov dword [ebp - 4], ecx
setg cl
cmp eax, dword [edx + 0x34]
setne al
or cl, al
je 0x180595af
push 0x80
push 2
push edi
push edi
push 0x40000000
mov dword [edx + 0x34], edi
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp esi, ebx
je 0x180595de
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
cmp esi, 0xffffffff
jmp 0x180595bd
push edi
push edi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x180595de
call fcn.18017850
mov edi, eax
jmp 0x180595cd
mov edi, 0x80004005
cmp esi, 0xffffffff
je 0x180595e3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180595e3
mov dword [eax + 0x34], edi
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1805cc78
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edx
lea eax, [ebp - 4]
xor edx, edx
push edx
push eax
push edx
push edx
push esi
push ecx
mov dword [ebp - 4], edx
call dword [sym.imp.DNSAPI.dll_DnsQuery_W]
test eax, eax
jne 0x1805cd61
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + 8]
cmp eax, 5
jne 0x1805ccdb
mov eax, dword [ebp + 8]
test eax, eax
je 0x1805ccc6
push dword [ebp + 0xc]
mov ecx, dword [ecx + 0x18]
dec eax
push eax
mov edx, esi
call fcn.1805cc78
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov esi, eax
jmp 0x1805cccb
mov esi, 0x251d
push 1
push ecx
call dword [sym.imp.DNSAPI.dll_DnsFree]
mov eax, esi
jmp 0x1805cd61
xor esi, esi
inc esi
cmp eax, 0x1c
jne 0x1805cd1d
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 str._x:_x:_x:_x:_x:_x:_x:_x
push dword [ebp + 0xc]
call fcn.1805aa5d
add esp, 0x28
jmp 0x1805cd46
cmp ax, si
jne 0x1805cd54
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 0x181dc11c
push dword [ebp + 0xc]
call fcn.1805aa5d
add esp, 0x18
push esi
push dword [ebp - 4]
call dword [sym.imp.DNSAPI.dll_DnsFree]
xor eax, eax
jmp 0x1805cd61
push esi
push ecx
call dword [sym.imp.DNSAPI.dll_DnsFree]
mov eax, 0x251d
pop esi
leave
ret
Function at 0x1805d57e
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edx, dword [eax]
xor esi, esi
mov edi, esi
mov dword [ebp - 0x24], esi
mov ebx, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov eax, dword [edx - 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], edx
lea eax, [eax*2 + 2]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push 1
push esi
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], esi
push eax
push 0x181eb480
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x1805d5e5
call fcn.18017850
test eax, eax
js 0x1805d69a
jmp 0x1805d604
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, ecx
push eax
push ecx
push esi
lea ecx, [ebp - 0x24]
call fcn.1805a24b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
lea ecx, [ebp - 0x18]
call fcn.18012e1c
push dword [ebp + 8]
lea ecx, [ebx + 0x1c]
call fcn.1805db8a
mov esi, eax
cmp esi, 0xffffffff
jne 0x1805d656
push dword [ebp + 8]
lea ecx, [ebx + 0x1c]
call fcn.1805dbbc
push dword [ebp + 0xc]
lea ecx, [ebx + 0x28]
call fcn.1805dbbc
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebx + 0x34]
call fcn.1805db08
lea eax, [ebp + 8]
mov dword [ebp + 8], 0xffff
push eax
lea ecx, [ebx + 0x40]
call fcn.1805da61
jmp 0x1805d68c
push dword [ebp + 0xc]
lea ecx, [ebx + 0x28]
push esi
call fcn.1805da3c
mov ecx, eax
call fcn.18009c40
lea eax, [ebp - 0x24]
push eax
push esi
lea ecx, [ebx + 0x34]
call fcn.1805dae3
mov ecx, eax
call fcn.1805d9f4
push esi
lea ecx, [ebx + 0x40]
call fcn.1805da3c
mov dword [eax], 0xffff
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x1805d6cc
sub edi, esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], edi
cmp edi, 0x1000
jb 0x1805d6c3
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.18007386
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
pop ecx
pop ecx
push edi
push esi
call fcn.1814d45b
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x180621a0
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1820f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x180621d7
call fcn.18017850
mov ebx, eax
jmp 0x180622b1
push 0x24
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x18062296
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x18062236
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x180622a1
cmp eax, 3
je 0x18062239
push 0x1c
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.181620e0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x18062296
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x180622a1
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [ebp - 0x1c], 1
mov dword [ebp - 0x24], eax
je 0x180622a1
call edi
sub eax, dword [ebp - 0x24]
cmp eax, 0x1f40
jae 0x18062287
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1c
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.181620e0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x1c]
cmp eax, 1
jne 0x1806224f
jmp 0x1806228a
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x180622a1
mov ebx, 0x800705b4
jmp 0x180622a1
call fcn.18017850
mov ebx, eax
test esi, esi
je 0x180622a8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret

Function at 0x180622fb
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1820f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x18062374
push esi
push 4
push str.Schedule
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1806236a
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
pop edi
test eax, eax
je 0x1806235f
cmp dword [ebp - 0x1c], 4
je 0x1806235b
cmp dword [ebp - 0x1c], 2
jne 0x18062363
mov bl, 1
jmp 0x18062363
test esi, esi
je 0x1806236a
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret
Function at 0x180627b9
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push esi
push 0x18062834
mov eax, dword [esi + 0x20]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x18062817
mov eax, dword [esi + 0x30]
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 8], eax
cmp edi, eax
je 0x18062816
sub eax, edi
sar eax, 2
cmp eax, dword [esi + 0x38]
ja 0x18062816
mov eax, dword [edi]
lea ecx, [esi + 0x20]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.18062e43
add edi, 4
cmp edi, dword [ebp - 8]
jne 0x180627fb
xor ebx, ebx
pop edi
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x24]
jne 0x1806282c
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
je 0x1806282e
cmp dword [esi + 0x38], ebx
jbe 0x1806282e
mov bl, 1
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x18062bb2
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call fcn.180627b9
test al, al
jne 0x18062beb
mov eax, dword [esi + 0x20]
push esi
push 0x18062b6b
mov dword [esi + 0x24], eax
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x18062be4
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x24]
jne 0x18062beb
xor eax, eax
jmp 0x18062c7f
mov eax, dword [esi + 0x24]
xor ebx, ebx
mov edi, dword [esi + 0x20]
inc ebx
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], eax
cmp edi, eax
je 0x18062c7d
mov eax, dword [edi]
push 0
push 0xf060
push 0x112
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x18062c62
push 0xfffffffffffffff0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
shr eax, 0x1d
test al, 1
je 0x18062c38
push 8
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x18062c4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x40], 0
je 0x18062c5b
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_FlashWindow]
mov al, bl
mov byte [ebp - 1], al
jmp 0x18062c65
mov al, byte [ebp - 1]
add edi, 4
cmp edi, dword [ebp - 0xc]
jne 0x18062bff
test al, al
je 0x18062c7d
push dword [ebp + 8]
mov ecx, esi
call fcn.1806246c
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x18062d20
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1820f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0
push 4
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp ebx, 0xffffffff
jne 0x18062d53
xor al, al
jmp 0x18062dcc
xor eax, eax
mov dword [ebp - 0x20], 0x1c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x18062dc0
mov eax, dword [ebp - 0x24]
mov esi, dword [esi + 0x10]
cmp esi, dword [eax + 0x14]
je 0x18062dab
mov ebx, eax
mov eax, dword [esi]
cmp eax, dword [ebp - 0x14]
jne 0x18062da0
mov eax, dword [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.1801527e
add esi, 4
cmp esi, dword [ebx + 0x14]
jne 0x18062d88
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
mov esi, dword [ebp - 0x24]
test eax, eax
jne 0x18062d7b
mov eax, dword [edi]
cmp eax, dword [edi + 4]
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret 4

Function at 0x18062ddd
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov byte [ebp - 1], bl
mov edi, ebx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x18062e3a
push ebx
push dword [ecx + edi*4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x18062e12
mov dl, 1
mov byte [ebp - 1], dl
jmp 0x18062e15
mov dl, byte [ebp - 1]
mov eax, dword [esi + 8]
inc edi
mov ecx, dword [esi + 4]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x18062dfd
test dl, dl
je 0x18062e3a
push dword [ebp + 8]
mov ecx, esi
call fcn.1806246c
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x18062fb0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push dword [edi + 4]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov eax, dword [edi + 8]
cmp eax, esi
je 0x18062fdb
test eax, eax
je 0x18062fd6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], esi
mov eax, esi
test eax, eax
je 0x18062fed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne bl
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x18064cba
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
push 1
push ecx
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ecx
push eax
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], ecx
push eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x18064d0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18064d07
call fcn.18017850
jmp 0x18064d34
mov eax, 0x8007000d
jmp 0x18064d34
push dword [ebp - 8]
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
add edx, esi
push edx
push esi
mov eax, dword [ecx]
push eax
mov dword [ecx + 4], eax
call fcn.1805a24b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
leave
ret

Function at 0x18065181
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x18065196
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push esi
push 0x1806513c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
jne 0x180651c4
xor al, al
jmp 0x180651d5
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
inc al
pop esi
pop ebp
ret 4
Function at 0x1806e6de
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1806e705
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.180236f3
jmp 0x1806e7ba
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x1806e727
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1806e729
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x1806e7ae
jg 0x1806e73e
test esi, esi
je 0x1806e7ae
test ecx, ecx
jl 0x1806e791
jg 0x1806e748
test eax, eax
je 0x1806e791
cmp edi, ecx
jg 0x1806e75c
jl 0x1806e752
cmp esi, eax
jae 0x1806e75c
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.18161b60
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
mov eax, dword [ebp + 8]
add eax, ecx
test edi, edi
jl 0x1806e7ae
jg 0x1806e794
test esi, esi
je 0x1806e7ae
jmp 0x1806e794
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x1806e7ae
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.18187d01
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1806e7c3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test ebx, ebx
jg 0x1806e7ea
jl 0x1806e7e1
test esi, esi
jne 0x1806e7ea
xor eax, eax
xor edx, edx
jmp 0x1806e8f3
cmp dword [edi + 0x38], 0
je 0x1806e7ff
push ebx
push esi
push dword [ebp + 8]
call fcn.180237d1
jmp 0x1806e8f3
mov eax, dword [edi + 0x1c]
mov ecx, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov ecx, dword [eax]
test ecx, ecx
je 0x1806e85b
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
test eax, eax
je 0x1806e85b
cmp eax, esi
jb 0x1806e829
mov eax, esi
mov dword [esp + 0xc], esi
push eax
push ecx
push dword [ebp + 8]
call fcn.18161b60
mov edx, dword [esp + 0x18]
mov ecx, esi
mov eax, dword [ebp + 8]
sub ecx, edx
add eax, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
add esp, 0xc
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x14], ecx
sub dword [eax], edx
mov eax, dword [edi + 0x1c]
add dword [eax], edx
jmp 0x1806e862
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
cmp dword [edi + 0x4c], 0
je 0x1806e8e6
mov ecx, edi
call fcn.1806f8cc
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp eax, 0xfff
jbe 0x1806e8be
mov ecx, dword [esp + 0xc]
push dword [edi + 0x4c]
push 0xfff
push 1
push ecx
call fcn.181882fa
mov ecx, dword [esp + 0x1c]
add esp, 0x10
mov edx, dword [esp + 0x10]
add ecx, eax
sub edx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
cmp eax, 0xfff
jne 0x1806e8ba
cmp edx, eax
ja 0x1806e882
jmp 0x1806e8c2
sub esi, edx
jmp 0x1806e8ec
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, eax
test eax, eax
je 0x1806e8ea
push dword [edi + 0x4c]
push edx
push 1
push dword [esp + 0x18]
call fcn.181882fa
mov ecx, dword [esp + 0x24]
add esp, 0x10
sub ecx, eax
jmp 0x1806e8ea
mov ecx, dword [esp + 0x14]
sub esi, ecx
sbb ebx, 0
mov eax, esi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1806eb97
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1820f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1806ebba
xor eax, eax
jmp 0x1806ec81
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1806ebe6
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1806ebe6
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x1806ec79
cmp dword [esi + 0x4c], 0
je 0x1806ec7d
mov ecx, esi
call fcn.1806f8cc
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x1806ec06
push dword [esi + 0x4c]
push eax
jmp 0x1806ec40
mov byte [ebp - 0x28], al
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x1806ec7d
cmp eax, 1
jle 0x1806ec50
cmp eax, 3
jne 0x1806ec7d
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.18065510
pop ecx
pop ecx
test al, al
jne 0x1806ec79
or ebx, 0xffffffff
jmp 0x1806ec79
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1806ec6d
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.18187d01
add esp, 0x10
cmp edi, eax
jne 0x1806ec7d
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1806ec7d
mov eax, ebx
jmp 0x1806ec80
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret 4

Function at 0x1806f91a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1820f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x1806f973
cmp byte [esi + 0x3d], bl
je 0x1806f973
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1806f9ac
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, ebx
je 0x1806f984
sub eax, 1
je 0x1806f987
dec eax
sub eax, 1
jne 0x1806f9ac
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1806f9a4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.18187d01
add esp, 0x10
cmp edi, eax
jne 0x1806f9ac
cmp byte [esi + 0x3d], bl
sete al
jmp 0x1806f975
xor al, al
jmp 0x1806f975
Function at 0x18079c14
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
call fcn.1801a8a4
mov edi, eax
call fcn.1800fb26
xor ebx, ebx
push ebx
push 0x989680
push edx
push eax
call fcn.181862c0
mov ecx, str.HKLMSoftwareMicrosoftEdgeUpdate_
lea esi, [eax + 0x49ef6f00]
cmp byte [ebp - 0xc], bl
jne 0x18079c50
mov ecx, str.HKCUSoftwareMicrosoftEdgeUpdate_
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 4
mov edx, str.RetryAfter
call fcn.1801661d
mov ecx, dword [ebp - 8]
add esp, 0xc
test eax, eax
jns 0x18079c70
mov ecx, ebx
cmp esi, ecx
jae 0x18079c7e
lea eax, [esi + 0x15180]
cmp ecx, eax
jbe 0x18079ccd
push ebx
lea eax, [ebp - 2]
mov byte [ebp - 2], bl
push eax
mov ecx, edi
call fcn.1801b844
mov esi, eax
test esi, esi
jne 0x18079cd4
movzx ecx, byte [0x18217983]
neg ecx
sbb ecx, ecx
and ecx, 0x18217880
je 0x18079ccd
push 7
pop edx
inc eax
mov dword [ebp - 0x1c], ecx
push eax
push edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
call fcn.18008988
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push str._ShouldCheckForUpdates_returned_0__checks_disabled_
push eax
call fcn.18006aa4
pop ecx
pop ecx
xor al, al
jmp 0x18079d6c
push dword [ebp - 0xc]
call fcn.1801bab4
mov edi, eax
call fcn.1801a8a4
push ebx
lea ecx, [ebp - 1]
mov dword [ebp - 0x18], ebx
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
push ecx
mov ecx, eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 1], bl
call fcn.1801ccc4
test eax, eax
js 0x18079d08
cmp byte [ebp - 1], bl
jne 0x18079d6a
cmp edi, esi
jl 0x18079d6a
lea eax, [esi + 0xe10]
cmp edi, eax
jge 0x18079d68
cmp byte [ebp - 2], bl
jne 0x18079d68
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 4
mov edx, str.DisableUpdateAppsHourlyJitter
mov ecx, str.HKLMSoftwareMicrosoftEdgeUpdateDev_
call fcn.1801661d
add esp, 0xc
test eax, eax
js 0x18079d40
cmp dword [ebp - 0xc], ebx
jne 0x18079d68
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
movzx eax, al
neg eax
push 0x64
sbb eax, eax
xor edx, edx
and eax, dword [ebp - 0xc]
pop ecx
div ecx
cmp edx, 0x5a
setb bl
jmp 0x18079d6a
mov bl, 1
mov al, bl
pop edi
pop esi
pop ebx
leave
ret