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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181d400c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
mov esi, ecx
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
mov dword [ebp - 0xc], esi
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [ebp + ecx - 0xc]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x1801ed98
push edx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1802598d
mov ecx, dword [0x181da07c]
mov eax, dword [eax + 4]
test eax, eax
jne 0x1801edc8
mov eax, ecx
cmp eax, ecx
je 0x1801edda
add eax, 0xc
lea ecx, [ebp - 8]
push eax
call fcn.18009e6a
jmp 0x1801edf0
or esi, 0x4000
lea edx, [ebp - 8]
mov ecx, esi
call fcn.1800cafe
mov esi, eax
test esi, esi
js 0x1801ee5f
mov eax, dword [ebp - 8]
xor edx, edx
mov esi, dword [edi]
inc edx
mov edi, 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x1801ee15
push edi
lea ecx, [ebp - 8]
call fcn.1800771c
mov eax, dword [ebp - 8]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.18009eb8
test esi, esi
jne 0x1801ee34
mov esi, 0x80040709
jmp 0x1801ee5f
mov esi, dword [ebp - 8]
test esi, esi
jne 0x1801ee3f
xor eax, eax
jmp 0x1801ee46
push esi
call fcn.18136f20
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.180075cd
cmp byte [ebp + 8], 0
je 0x1801ee5d
mov ecx, dword [ebp - 8]
call fcn.1800c9d0
xor esi, esi
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.18006f52
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e228
leave
ret

Function at 0x180222c0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x181d400c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 0
push eax
push 4
mov edx, str.AutoUpdateJitterMs
mov ecx, str.HKLMSoftwareMicrosoftEdgeUpdateDev_
call fcn.1801a4e1
add esp, 0xc
test eax, eax
js 0x18022303
mov eax, dword [ebp - 8]
cmp eax, 0xea60
jb 0x18022328
mov eax, 0xea5f
jmp 0x18022328
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
movzx eax, al
mov ecx, 0xea60
neg eax
sbb eax, eax
xor edx, edx
and eax, dword [ebp - 0xc]
div ecx
mov eax, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1811e228
leave
ret
Function at 0x18026bd3
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181d400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
push edi
mov edi, dword [ebp + 0xc]
test cl, cl
je 0x18026cf6
call fcn.18015ca1
test al, al
je 0x18026cf6
call fcn.1801705c
test al, al
je 0x18026cf6
xor ebx, ebx
lea ecx, [ebp - 0x11]
mov byte [ebp - 0x11], bl
call fcn.1800d73c
test eax, eax
sets al
dec al
and byte [ebp - 0x11], al
je 0x18026c36
push ecx
mov edx, edi
mov ecx, esi
call fcn.1801bef7
pop ecx
jmp 0x18026d0d
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push dword [esi]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x18026ce0
cmp dword [ebp - 0xc], ebx
jne 0x18026c5c
xor edi, edi
inc edi
jmp 0x18026ce7
push dword [esi]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.180074da
mov dword [ebp - 8], ebx
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
xor edi, edi
inc edi
cmp dword [ebp - 0xc], edi
jle 0x18026cb9
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], ebx
je 0x18026c94
push 0x20
lea ecx, [ebp - 8]
call fcn.18009f07
mov ebx, dword [esi + edi*4]
test ebx, ebx
jne 0x18026c9f
xor eax, eax
jmp 0x18026ca6
push ebx
call fcn.18136f20
pop ecx
push eax
push ebx
lea ecx, [ebp - 8]
call fcn.18009f34
inc edi
push 0
pop ebx
cmp edi, dword [ebp - 0xc]
jl 0x18026c82
push ecx
lea edx, [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.180172c9
pop ecx
mov ecx, dword [ebp - 8]
mov edi, eax
add ecx, 0xfffffff0
call fcn.18006f52
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.18006f52
jmp 0x18026ceb
call fcn.1801baa5
mov edi, eax
test esi, esi
je 0x18026cf2
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
jmp 0x18026d0d
push 0
mov edx, edi
mov ecx, esi
call fcn.1801bc3a
pop ecx
test eax, eax
jns 0x18026d0b
lfence
jmp 0x18026d0d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e228
leave
ret
Function at 0x18027c4b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x181d400c]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x208
mov dword [esp + 0x10], eax
xor edi, edi
lea eax, [esp + 0x2c]
mov bl, dl
push edi
push eax
mov esi, ecx
call fcn.18132ed0
add esp, 0xc
lea eax, [esp + 0x28]
push 0x104
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x18027cb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18027d06
movzx eax, ax
or eax, 0x80070000
jmp 0x18027d06
lea ecx, [esp + 0x10]
call fcn.1800bfcf
lea eax, [esp + 0x10]
mov dl, bl
push eax
lea ecx, [esp + 0x2c]
call fcn.1800c6f9
pop ecx
push dword [esp + 0x10]
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
test eax, eax
jne 0x18027cfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x18027cfb
movzx edi, di
or edi, 0x80070000
lea ecx, [esp + 0x10]
call fcn.1800bff8
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1811e228
mov esp, ebp
pop ebp
ret

Function at 0x18027d4b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10820
call fcn.18159cf0
mov eax, dword [0x181d400c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0x1081c], esi
mov ecx, dword [edi]
call fcn.18010809
test al, al
jne 0x18027d87
mov eax, 0x80070002
jmp 0x18027e87
mov ecx, esi
call fcn.1801cc8d
push 0x10000
lea eax, [ebp - 0x1080c]
push 0
push eax
call fcn.18132ed0
add esp, 0xc
lea eax, [ebp - 0x1080c]
push dword [edi]
push 0x8000
push eax
push 0
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
and dword [ebp - 0x10814], 0
mov dword [ebp - 0x10818], eax
test eax, eax
je 0x18027e85
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.18132ed0
mov eax, dword [ebp - 0x10814]
lea ecx, [ebp - 0x1080c]
and dword [ebp - 0x10810], 0
add esp, 0xc
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x10810]
call fcn.180074da
push dword [edi]
lea eax, [ebp - 0x80c]
push 0x400
push eax
push 0
push dword [ebp - 0x10810]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x10810]
mov ecx, esi
push eax
call fcn.180290cf
mov esi, eax
lea eax, [ebp - 0x80c]
push eax
call fcn.18136f20
pop ecx
push eax
lea eax, [ebp - 0x80c]
mov ecx, esi
push eax
call fcn.180075cd
mov eax, dword [ebp - 0x10810]
mov esi, dword [ebp - 0x10814]
inc esi
add esi, dword [eax - 0xc]
lea ecx, [eax - 0x10]
mov dword [ebp - 0x10814], esi
call fcn.18006f52
cmp esi, dword [ebp - 0x10818]
mov esi, dword [ebp - 0x1081c]
jb 0x18027dd3
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e228
leave
ret
Function at 0x18027e96
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x181d400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], edx
push edi
xor edi, edi
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
jne 0x18027ebe
xor eax, eax
inc eax
jmp 0x18027fa4
mov edx, 0x181aa3a4
mov dword [ebp - 0xc], edi
lea ecx, [ebp - 0xc]
call fcn.1800edda
mov eax, dword [ebp - 0xc]
cmp dword [eax - 0xc], edi
jne 0x18027ee2
call fcn.1801baa5
mov edi, eax
jmp 0x18027f97
push esi
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x18027f0d
call fcn.1801baa5
mov edi, eax
jmp 0x18027f96
mov dword [ebp - 8], edi
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
mov edx, ebx
lea ecx, [ebp - 0x14]
call fcn.18012770
push dword [eax]
lea eax, [ebp - 8]
push 0xbf
push 0xbb
push 0xef
push str._c_c_c_s
push eax
call fcn.18016b32
mov ecx, dword [ebp - 0x14]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push edi
push ecx
mov dword [ebp - 0x10], edi
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18027f78
call fcn.1801baa5
mov edi, eax
jmp 0x18027f84
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push eax
call fcn.18009e6a
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1811e228
leave
ret
Function at 0x18028a60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x181d400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov bl, cl
push edi
mov byte [ebp - 0x31], bl
call fcn.180268f0
test al, al
je 0x18028a8b
mov eax, 0x80004005
jmp 0x18028c34
xor edi, edi
mov dword [ebp - 0x28], 0x181a0e50
lea edx, [ebp - 0x28]
mov dword [ebp - 0x24], edi
mov cl, bl
call fcn.18028539
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], 0x181a0d8c
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x200
call fcn.1801fa5a
mov eax, str.HKLMSoftwareMicrosoftEdgeUpdate_
test bl, bl
jne 0x18028ad7
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 0x18028bf4
push edi
push edi
push edi
push edi
push 0x181aa204
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18028b10
mov ebx, edi
jmp 0x18028bf4
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 0x18028be6
xor ebx, ebx
lea ecx, [ebp - 0x20]
inc ebx
push ebx
push esi
push 0x181aa204
call fcn.1801aa22
test eax, eax
js 0x18028be6
mov ecx, 0x181d51e0
call fcn.180269e1
lea ecx, [ebp - 0x20]
call fcn.180289f5
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.18028266
mov edi, dword [ebp - 0x14]
test eax, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
js 0x18028ba6
cmp edi, eax
je 0x18028ba6
sub esp, 0xc
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.180254c8
mov cl, byte [ebp - 0x31]
call fcn.180285ae
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 0x18028bea
cmp edi, eax
je 0x18028bc8
mov esi, dword [ebp - 0x38]
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.18006f52
add edi, 4
cmp edi, esi
jne 0x18028bb1
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 0x18028bec
mov ebx, eax
jmp 0x18028bec
xor edi, edi
lea ecx, [esi - 0x10]
call fcn.18006f52
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0x181a0d8c
je 0x18028c14
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], 0x181a0e50
je 0x18028c32
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.1811e228
leave
ret
Function at 0x18030adc
Capabilities:
Authenticate hmac

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x18030b1e
call fcn.18030d50
mov ecx, esi
cmp eax, 0xef
jne 0x18030b19
call fcn.18030d50
cmp eax, 0xbb
jne 0x18030b0d
mov ecx, esi
call fcn.18030d50
cmp eax, 0xbf
je 0x18030b1e
mov dword [esi + 0x40], str.invalid_BOM__must_be_0xEF_0xBB_0xBF_if_given
push 0xe
pop eax
pop esi
ret
call fcn.18031816
mov ecx, esi
call fcn.18030d50
mov eax, dword [esi + 8]
cmp eax, 0x20
je 0x18030b1e
cmp eax, 9
je 0x18030b1e
cmp eax, 0xa
je 0x18030b1e
cmp eax, 0xd
je 0x18030b1e
cmp eax, 0x36
jg 0x18030b97
je 0x18030b66
cmp eax, 0x30
jg 0x18030b7e
je 0x18030b66
cmp eax, 0xffffffff
je 0x18030b7a
test eax, eax
je 0x18030b7a
cmp eax, 0x22
je 0x18030b72
cmp eax, 0x2c
je 0x18030b6e
cmp eax, 0x2d
jne 0x18030be6
mov ecx, esi
pop esi
jmp fcn.18030dfa
push 0xd
jmp 0x18030b16
mov ecx, esi
pop esi
jmp fcn.180311c0
push 0xf
jmp 0x18030b16
sub eax, 0x31
je 0x18030b66
sub eax, 1
je 0x18030b66
sub eax, 1
je 0x18030b66
sub eax, 1
je 0x18030b66
sub eax, 1
jmp 0x18030b60
cmp eax, 0x5d
jg 0x18030bcc
je 0x18030bc5
sub eax, 0x37
je 0x18030b66
sub eax, 1
je 0x18030b66
sub eax, 1
je 0x18030b66
sub eax, 1
je 0x18030bbe
sub eax, 0x21
jne 0x18030be6
push 8
jmp 0x18030b16
push 0xc
jmp 0x18030b16
push 0xa
jmp 0x18030b16
sub eax, 0x66
je 0x18030c16
sub eax, 8
je 0x18030c0b
sub eax, 6
je 0x18030c00
sub eax, 7
je 0x18030bf9
dec eax
sub eax, 1
je 0x18030bf2
mov dword [esi + 0x40], str.invalid_literal
jmp 0x18030b14
push 0xb
jmp 0x18030b16
push 9
jmp 0x18030b16
push 1
push 4
push str.true
jmp 0x18030c1f
push 3
push 4
push str.null
jmp 0x18030c1f
push 2
push 5
push str.false
mov ecx, esi
call fcn.18030dbc
pop esi
ret
Function at 0x1803b5a9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x181d400c]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
push 0x400
lea eax, [esp + 0x20]
mov dword [esp + 0x18], ecx
push edi
push eax
mov dword [esp + 0x1c], edi
call fcn.18132ed0
add esp, 0xc
mov dword [esp + 0x18], edi
push 0x60
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1803b620
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1803b620
call fcn.180079f0
mov esi, eax
jmp 0x1803b6d3
push dword [esp + 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1803b63c
call fcn.180079f0
jmp 0x1803b6c6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1803b632
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea ecx, [esi + 1]
cmp ecx, esi
jae 0x1803b662
mov esi, 0x8007000e
jmp 0x1803b6c8
push 2
pop edx
lfence
call fcn.180103c5
cmp eax, 0x400
jbe 0x1803b683
push eax
lea ecx, [esp + 0x1c]
lfence
call fcn.180418b3
jmp 0x1803b68b
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
je 0x1803b65b
push esi
lfence
push dword [esp + 0x1c]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1803b632
mov eax, dword [esp + 0x18]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [esp + 0x14]
push dword [esp + 0x1c]
call fcn.1803c18a
mov esi, eax
test edi, edi
je 0x1803b6d3
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x1c]
cmp dword [esp + 0x18], eax
je 0x1803b6e6
lea ecx, [esp + 0x18]
call fcn.180409e7
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1811e228
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1803d530
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ecx + 0x98]
cmp dword [esi], 0
jne 0x1803d58b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [esi + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor edi, edi
inc edi
test eax, eax
je 0x1803d587
jmp 0x1803d581
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
cmp eax, ebx
jae 0x1803d578
or ecx, 0xffffffff
sub ecx, ebx
add ecx, eax
cmp ecx, dword [ebp - 4]
jae 0x1803d587
cmp dword [esi + 4], 0
jg 0x1803d55c
xchg dword [esi], edi
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1803ddcc
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x181d400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 2
pop esi
mov ecx, dword [edi + 0x80]
cmp ecx, dword [edi + 0x84]
je 0x1803ddff
xor eax, eax
cmp dword [ecx + 0x14], eax
setne al
mov dword [ebp - 0xc], eax
mov esi, eax
mov al, byte [edi + 0x8d]
mov bl, byte [edi + 0x11]
mov dword [ebp - 0xc], eax
call fcn.1801fa5a
mov ecx, dword [edi + 0xc]
inc eax
push esi
push ebx
push dword [ebp - 0xc]
mov dl, byte [eax]
call fcn.1803f4e2
add esp, 0xc
mov byte [edi + 0x8c], al
mov ecx, 0x181d5618
push eax
call fcn.180261bc
cmp byte [edi + 0x8c], 0
je 0x1803de4c
call fcn.1801705c
test al, al
je 0x1803de4c
mov cl, 1
xor ebx, ebx
jmp 0x1803de50
xor ebx, ebx
mov cl, bl
call fcn.18074b8e
mov edx, dword [edi]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.18014d67
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], ebx
je 0x1803df2e
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1803df2e
movzx ecx, byte [0x181da05a]
neg ecx
sbb ecx, ecx
and ecx, 0x181d9f50
je 0x1803deda
push 7
pop edx
push 3
pop eax
push eax
push edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
call fcn.18008b3f
mov edx, esi
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc]
call fcn.1800722f
push dword [ebp - 0xc]
movzx eax, byte [edi + 0x8c]
push eax
lea eax, [ebp - 0x1c]
push str._is_machine:__d__Current_dir___s_
push eax
call fcn.18007210
mov ecx, dword [ebp - 0xc]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, edi
call fcn.1803e78b
mov cl, byte [edi + 0x8c]
call fcn.1803f3ba
push dword [edi + 0xc]
call fcn.1803e6a7
test al, al
je 0x1803df0e
mov cl, byte [edi + 0x8c]
call fcn.18027251
test al, al
je 0x1803df0e
mov edi, 0xa0430607
jmp 0x1803df35
lea eax, [ebp - 8]
mov ecx, edi
push eax
push dword [edi + 0xc]
call fcn.1803e6f9
mov edi, eax
mov ecx, edi
call fcn.1801d0b7
mov esi, dword [ebp - 8]
test edi, edi
js 0x1803df35
jmp 0x1803df37
call fcn.1801baa5
mov edi, eax
mov ebx, edi
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.1811e228
leave
ret
Function at 0x1803efee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x181d400c]
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 0x1803f01f
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], 0x181a0d8c
mov dword [ebp - 0x10], 0x200
call fcn.1801a28e
mov ebx, eax
mov ecx, ebx
call fcn.1801d0b7
test ebx, ebx
js 0x1803f194
lea ecx, [ebp - 0x18]
call fcn.1801b25e
test eax, eax
je 0x1803f18f
push str.Clients
lea ecx, [ebp - 0x18]
call fcn.1801a2f0
test al, al
je 0x1803f18f
push str.ClientState
lea ecx, [ebp - 0x18]
call fcn.1801a2f0
test al, al
je 0x1803f18f
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 0x1803f18f
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 0x1803f18f
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 0x1803f182
and dword [ebp - 0x1c], 0
call fcn.1801fa5a
cmp byte [esi + 0x8c], 0
mov eax, str.HKLMSoftwareMicrosoftEdgeUpdateClientsF3C4FE00_EFD5_403B_9569_398A20F1BA4A
jne 0x1803f11b
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, 0x181aa92c
mov ecx, esi
call fcn.1801cac1
pop ecx
mov ebx, eax
mov ecx, ebx
call fcn.1801d0b7
test ebx, ebx
js 0x1803f16f
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.18009bef
test al, al
je 0x1803f16d
mov ebx, 0xa043090b
jmp 0x1803f16f
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 0x1803f194
mov ebx, 0x80070003
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x181a0d8c
je 0x1803f1b5
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.1811e228
leave
ret