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

Disassembly:
push 0x820
mov eax, 0x1019d0be
call fcn.10003f0f
call fcn.10003f71
lea ecx, [ebp - 0x81c]
call fcn.10004bd3
mov eax, dword [0x102763ec]
and dword [ebp - 4], 0
push str.JavaScriptPerms
push str.FeatureLockdown
mov esi, dword [eax + 0x5c0]
mov ecx, esi
call dword [0x101b03f8]
call esi
pop ecx
pop ecx
push str.BlackList
push eax
mov eax, dword [0x102763dc]
mov esi, dword [eax + 0x114]
mov ecx, esi
call dword [0x101b03f8]
call esi
pop ecx
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0x81c]
inc ebx
mov esi, eax
push ebx
call fcn.10014ba0
push ebx
lea ecx, [ebp - 0x81c]
mov dword [ebp - 0x81c], esi
call fcn.10014ba0
lea ecx, [ebp - 0x828]
call fcn.10004bd3
mov ax, word [0x1026e4d4]
mov ecx, 0xffff
mov byte [ebp - 4], bl
cmp ax, cx
jne 0x10003cbf
mov ecx, 0x1026e4d4
call fcn.10002c74
movzx eax, ax
push str.Reader
push eax
mov eax, dword [0x10276388]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x101b03f8]
call esi
pop ecx
push eax
call fcn.10014ba0
pop ecx
pop ecx
test ax, ax
je 0x10003d07
mov eax, dword [0x10274a08]
mov edi, str.SOFTWAREAdobeAcrobat_ReaderDCJavaScriptPerms
mov esi, dword [eax + 0xcbc]
mov ecx, esi
call dword [0x101b03f8]
call esi
test ax, ax
je 0x10003d0c
mov edi, str.SOFTWAREAdobeAdobe_AcrobatDCJavaScriptPerms
lea eax, [ebp - 0x820]
push eax
push ebx
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor edi, edi
test eax, eax
jne 0x10003d98
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x82c], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x814]
push eax
push edi
push str.tBlackList
push dword [ebp - 0x820]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10003d8c
cmp dword [ebp - 0x814], ebx
jne 0x10003d8c
push edi
call fcn.10014ba0
pop ecx
push eax
push edi
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.10014ba0
push ebx
lea ecx, [ebp - 0x828]
call fcn.10014ba0
push dword [ebp - 0x820]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push edi
lea ecx, [ebp - 0x81c]
call fcn.10014ba0
test eax, eax
jne 0x10003dba
push edi
push edi
lea ecx, [ebp - 0x828]
call fcn.10014ba0
test eax, eax
je 0x10003e03
call fcn.1007bb52
cmp dword [0x10274844], 0
jne 0x10003e08
push ebx
push 0xc
call fcn.10014ba0
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x814], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x10003df2
push esi
mov dword [esi], edi
mov dword [esi + 4], edi
call fcn.1006f80f
pop ecx
mov dword [esi], eax
jmp 0x10003df4
mov esi, edi
mov byte [ebp - 4], bl
mov dword [0x10274844], esi
test esi, esi
jne 0x10003e08
mov ebx, edi
movzx ebx, bx
jmp 0x10003e32
push ecx
push ecx
lea eax, [ebp - 0x81c]
mov ecx, esp
push eax
call fcn.10014ba0
call fcn.1007b072
lea eax, [ebp - 0x828]
mov ecx, esp
push eax
call fcn.10014ba0
call fcn.1007b072
pop ecx
pop ecx
lea ecx, [ebp - 0x828]
call fcn.10014ba0
lea ecx, [ebp - 0x81c]
call fcn.10014ba0
mov ax, bx
call fcn.10004ff0
ret
Function at 0x100090cc
Capabilities:
Query environment variable

Disassembly:
push 4
mov eax, 0x1019d6b6
call fcn.1000195f
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi], eax
call fcn.100091d1
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
lea eax, [esi + 0x40]
mov dword [esi + 0x10], ebx
mov byte [esi + 0x14], bl
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], 2
mov dword [esi + 0x6f0], ebx
lea eax, [esi + 0x708]
mov dword [ebp - 4], ebx
mov dword [esi + 0x6f8], eax
mov dword [esi + 0x6fc], ebx
mov dword [esi + 0x700], ebx
lea eax, [esi + 0x5a0]
mov byte [ebp - 4], 1
push eax
call fcn.10014ba0
lea eax, [esi + 0x6e8]
push eax
call fcn.10014ba0
push str.MOZ_GCTIMER
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100091bd
push str.none
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x100091bd
push str.stdout
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x10009194
push 1
mov byte [esi + 0x14], bl
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x100091ba
push str.stderr
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x100091a9
push 2
jmp 0x10009189
push 0x101c084c
push edi
mov byte [esi + 0x14], 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
pop ecx
pop ecx
mov ebx, eax
mov dword [esi + 0x10], ebx
mov eax, esi
call fcn.100019bb
ret 4
Function at 0x10014ba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10014baf
pop dword [ebp - 0x18]
mov eax, 0x7ea3761f
sub eax, 0x6ea22a70
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0xc66ab
push 0
mov eax, 0x17721f76
add eax, 0xf8a8e10e
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x8fd4ed0e
sub ecx, 0x8fd4a19f
xor ebx, ebx
add ebx, eax
mov edi, 0x8f105294
sub edi, 0x7ee42894
add edi, dword [ebp - 0x18]
mov edx, 0x653dd3af
xor dword [ebp - 4], 0x1dabd1f
mov esi, dword [edi]
add dword [ebp - 0x14], 0x6649b9fa
xor esi, edx
xor dword [ebp - 4], 0xb5976216
mov dword [ebx], esi
add dword [ebp - 8], ecx
add ebx, 4
add edi, 4
loop 0x10014c0a
add eax, 0x1208f
mov ebx, eax
add eax, 5
mov ecx, 0x4ec83ee1
sub ecx, 0x3ec83ee1
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x1001d7ab
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [ecx + 0x29c]
test eax, eax
je 0x1001d7d7
dec eax
mov dword [ecx + 0x29c], eax
mov eax, dword [ecx + 0x298]
inc eax
and eax, 3
mov dword [ecx + 0x298], eax
shl eax, 5
mov eax, dword [eax + ecx + 0x218]
ret
jmp fcn.1001b7e2
Function at 0x10086265
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x101a306b
call fcn.1000195f
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.100f784b
xor edi, edi
lea eax, [ebp - 0x68]
push 0x44
push edi
push eax
mov dword [ebp - 4], edi
call sub.VCRUNTIME140.dll_memset
push 5
pop eax
push 0x10
mov word [ebp - 0x38], ax
xor esi, esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x60], 0x101bdb28
push edi
inc esi
push eax
mov dword [ebp - 0x3c], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x28
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [0x102763dc]
push edi
push edi
push 0x10
push esi
mov esi, dword [eax + 0x54]
mov ecx, esi
push edi
push edi
push dword [ebp - 0x14]
call dword [0x101b03f8]
call esi
pop ecx
push eax
push edi
call dword [sym.imp.kernel32.dll_CreateProcessW]
movzx esi, ax
test si, si
je 0x100862f8
push dword [ebp - 0x24]
call fcn.10014ba0
pop ecx
movzx esi, ax
lea ecx, [ebp - 0x14]
call fcn.10014ba0
mov ax, si
call fcn.100019bb
ret
Function at 0x401ae1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401b3a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b3a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401b29
cmp esi, ecx
jae 0x401b3a
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401b17
cmp esi, ecx
jae 0x401b3a
cmp word [esi], 0
je 0x401b3a
lfence
mov eax, esi
jmp 0x401b3c
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4026b7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x14], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov edi, 0x80070003
call fcn.00401cda
lea ecx, [ebp - 0x14]
call fcn.00402e1c
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x402811
and dword [ebp - 0xc], 0
or edx, 0xf003f
push ecx
push ecx
push edx
push ecx
push ecx
push esi
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x434df4
mov dword [ebp - 8], 0x200
call fcn.0040253c
mov edi, eax
test edi, edi
jne 0x4027fc
mov eax, dword [ebp + 8]
sub eax, 1
je 0x4027b9
sub eax, 1
je 0x4027b5
sub eax, 1
je 0x402786
sub eax, 1
je 0x402777
sub eax, 3
je 0x402764
sub eax, 4
je 0x402752
mov edi, 0x8007065d
jmp 0x4027c9
push dword [ebx + 4]
lea ecx, [ebp - 0x10]
push dword [ebx]
push dword [ebp - 0x18]
call fcn.00402ceb
jmp 0x4027c7
push 7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
push ebx
push dword [ebp - 0x18]
call fcn.00402d51
jmp 0x4027c7
push dword [ebx]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.00402cc1
jmp 0x4027c7
mov eax, ebx
neg eax
lfence
sbb eax, eax
and eax, dword [ebp + 0x10]
push eax
push ebx
push 3
push 0
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jle 0x4027c9
movzx edi, di
or edi, 0x80070000
jmp 0x4027c9
push 2
jmp 0x4027bb
push 1
push ebx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.00402d15
mov edi, eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
test eax, eax
je 0x4027f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, eax
test ecx, ecx
jle 0x4027e8
movzx ecx, cx
or ecx, 0x80070000
xor eax, eax
mov dword [ebp - 8], 0x200
mov dword [ebp - 0xc], eax
test edi, edi
jne 0x4027ff
mov edi, ecx
jmp 0x4027ff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x434df4
test eax, eax
je 0x402811
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.004015b2
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c891
leave
ret
Function at 0x402ab5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], eax
mov edi, ecx
xor ecx, ecx
lea eax, [ebp - 0xc]
push eax
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
push ecx
push ebx
push dword [edi + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x402b00
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x402b53
mov eax, dword [ebp - 0xc]
xor ecx, ecx
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d5dc
cmp dword [ebp - 0xc], 0
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
je 0x402b4e
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push ebx
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x402b53
movzx esi, si
or esi, 0x80070000
jmp 0x402b53
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c891
leave
ret 8

Function at 0x402b66
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push edx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], edx
push ecx
push edx
push eax
push dword [ebx + 4]
mov dword [ebp - 8], edx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x402bb1
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x402c22
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x402c1b
shr edx, 1
add edx, 1
js 0x402c35
mov eax, dword [edi]
xor ecx, ecx
inc ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x402bdd
push edx
mov ecx, edi
lfence
call fcn.00402095
cmp dword [edi], 0
jne 0x402be9
mov esi, 0x8007000e
jmp 0x402c10
lea eax, [ebp - 0xc]
push eax
push dword [edi]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 0x10]
push dword [ebx + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x402c10
movzx esi, si
or esi, 0x80070000
push 0xffffffffffffffff
mov ecx, edi
call fcn.004031a1
jmp 0x402c22
mov ecx, edi
call fcn.00401d26
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c891
leave
ret 8
push 0x80070057
call fcn.00401a85
int3

Function at 0x403824
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x40385a
lea esi, [edi + 4]
test esi, esi
je 0x40385a
call fcn.00403784
test al, al
je 0x40385a
mov ecx, edi
call fcn.00403784
test al, al
je 0x40385a
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x40385c
xor al, al
pop edi
pop esi
pop ebx
ret
Function at 0x404846
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push esi
push edi
mov esi, ecx
call fcn.004015db
push eax
lea ecx, [ebp - 8]
call fcn.00401f9b
mov eax, dword [ebp - 8]
xor edx, edx
inc edx
mov edi, 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x40488f
push edi
lea ecx, [ebp - 8]
call fcn.00402095
mov eax, dword [ebp - 8]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.004031a1
test esi, esi
jne 0x4048b1
mov edi, 0x80004005
jmp 0x404959
push ebx
push ecx
push ecx
lea ecx, [ebp - 8]
call fcn.0040523a
push 0
push 0x5c
lea ecx, [ebp - 8]
call fcn.00405201
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4048d7
mov ecx, dword [ebp - 8]
mov eax, dword [ecx - 0xc]
jmp 0x4048d9
mov eax, ebx
and dword [ebp - 0xc], 0
lea ecx, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403107
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.0040634c
test al, al
jne 0x404918
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404918
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.0040634c
test al, al
je 0x404937
cmp ebx, 0xffffffff
je 0x40494e
lea eax, [ebx + 1]
push eax
push 0x5c
lea ecx, [ebp - 8]
call fcn.00405201
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.004015b2
jmp 0x4048ca
test edi, edi
jle 0x404944
movzx edi, di
or edi, 0x80070000
lea ecx, [esi - 0x10]
call fcn.004015b2
jmp 0x404958
lea ecx, [esi - 0x10]
call fcn.004015b2
xor edi, edi
pop ebx
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.004015b2
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040c891
leave
ret

Function at 0x404974
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
jne 0x40499b
mov eax, 0x80070057
jmp 0x404a4a
push edi
mov ecx, esi
call fcn.00401d26
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0040d620
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x404a2b
movzx ecx, bl
cmp ecx, 0x26
jne 0x4049e0
mov edx, str.ProgramFiles
jmp 0x4049f6
cmp ecx, 0x1c
jne 0x4049ec
mov edx, str.LocalAppData
jmp 0x4049f6
cmp ecx, 0x23
jne 0x404a17
mov edx, str.ProgramData
lea ecx, [ebp - 0x210]
call fcn.00404b82
push eax
mov ecx, esi
call fcn.00401c8c
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.004015b2
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x404a24
xor eax, eax
inc eax
jmp 0x404a49
lfence
mov eax, edi
jmp 0x404a49
lea eax, [ebp - 0x20c]
push eax
call fcn.00415bed
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401ed9
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c891
leave
ret
Function at 0x405ced
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x18], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00404619
mov eax, dword [ebp - 0x1c]
push ebx
push esi
xor esi, esi
push esi
test eax, eax
jne 0x405d30
push esi
push esi
jmp 0x405d36
push eax
push 0x400
push esi
push esi
push esi
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x405d50
call fcn.00408949
mov esi, eax
jmp 0x405d90
movzx ecx, byte [0x43be81]
neg ecx
sbb ecx, ecx
and ecx, 0x43bd80
je 0x405d90
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x2c], ecx
inc eax
mov dword [ebp - 0x28], edx
push eax
push edx
mov dword [ebp - 0x24], eax
call fcn.0040717f
push dword [ebx + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push str._Started_process___u_
push eax
call fcn.00404544
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0040466f
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c891
leave
ret

Function at 0x4064b1
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x4064cc
mov al, 1
jmp 0x40650f
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0040d620
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x406507
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4354e8
call fcn.00408b76
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4064c8
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040c891
leave
ret
Function at 0x406981
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
mov ebx, ecx
call fcn.004076e2
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x406a26
push edi
push 1
push str.EnableLogging
mov esi, str.LoggingSettings
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.ShowTime
setne al
push esi
mov byte [ebx + 0x74], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.LogToFile
setne al
push esi
mov byte [ebx + 0x76], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push esi
mov byte [ebx + 0x77], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.AppendToFile
setne al
push esi
mov byte [ebx + 0x78], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
mov byte [ebx + 0x79], al
jmp 0x406a31
mov byte [ebx + 0x74], 1
mov dword [ebx + 0x76], 0x1000101
cmp byte [ebx + 0x75], 0
je 0x406a3b
mov byte [ebx + 0x76], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov dword [ebp - 0xc], eax
mov edx, dword [eax + 0x43aa80]
mov ecx, dword [eax + 0x43aa84]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
test edx, edx
je 0x406ab4
cmp ecx, 9
ja 0x406ab4
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, ebx
mov dword [ebp - 0x14], 3
call fcn.004076e2
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x406a97
push esi
push 3
push dword [ebp - 0x10]
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x406a9a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [esi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.004015b2
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
cmp eax, 0x48
jb 0x406a4a
call fcn.00401c47
lea ecx, [edi - 0x10]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
call fcn.004015b2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c891
leave
ret
Function at 0x406ae7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
call fcn.004015db
push eax
lea ecx, [ebp - 8]
call fcn.00401f9b
mov edi, dword [ebp - 8]
xor ecx, ecx
inc ecx
mov edx, 0x104
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x406b32
push edx
lea ecx, [ebp - 8]
call fcn.00402095
mov edi, dword [ebp - 8]
and dword [ebp - 0xc], 0
call fcn.004015db
push eax
lea ecx, [ebp - 0xc]
call fcn.00401f9b
call fcn.00408626
test al, al
jne 0x406b64
call fcn.004061b9
test al, al
jne 0x406b64
mov dword [ebp - 0x10], 0x1c
mov esi, str.Temp
jmp 0x406b70
mov dword [ebp - 0x10], 0x23
mov esi, str.MicrosoftEdgeUpdateLog
push esi
call fcn.00415bed
pop ecx
push eax
push esi
lea ecx, [ebp - 0xc]
call fcn.00401ed9
push edi
xor eax, eax
push eax
push eax
push dword [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x406bbd
push 0x42aedc
mov ecx, ebx
call fcn.00401cda
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.004015b2
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.004031a1
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
jmp 0x406c02
mov esi, dword [ebp - 0xc]
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x406bda
push 0x42aedc
mov ecx, ebx
call fcn.00401cda
jmp 0x406bea
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.00402028
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esi - 0x10]
call fcn.004015b2
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.004031a1
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004015b2
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c891
leave
ret 4

Function at 0x406cd1
Capabilities:
Print debug messages

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0xe0], 0
jne 0x406d1c
push esi
push 0x40
call fcn.0041d5ac
push 0x40
mov esi, eax
push 0
push esi
call fcn.0040d620
add esp, 0xc
mov ecx, esi
call fcn.00408d74
mov dword [edi + 0xe0], eax
pop esi
test eax, eax
jne 0x406d1c
push dword [edi + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_ETW_log_writer
call fcn.00408b76
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [edi + 0xe0]
test eax, eax
je 0x406d2e
push eax
mov ecx, edi
call fcn.00407653
pop edi
ret