joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
test eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10013a4
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x248]
mov edi, 0xfffff758
and eax, edi
or eax, dword [ebp + 8]
push eax
lea eax, [esi + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10013e4
mov eax, dword [esi + 0x248]
and eax, edi
or eax, dword [ebp + 8]
mov dword [esi + 0x248], eax
mov al, 1
jmp 0x10013f5
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10013f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
pop edi
pop esi
pop ebp
ret 8
Function at 0x41aebb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x41aeca
pop dword [ebp - 0x48]
mov eax, 0x7ce0bdbf
add eax, 0x8360f10b
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3f5e6
push 0
mov eax, 0xb216cb6
sub eax, 0xadf8aa2
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x8705ce7b
sub ecx, 0x870582ff
mov esi, eax
mov edi, 0x438000
add edi, dword [ebp - 0x48]
mov ebx, 0x4e610b22
sub ebx, 0xd1c48aec
mov edx, dword [edi]
add dword [ebp - 0x38], ecx
xor edx, ebx
sub dword [ebp - 0x38], ecx
mov dword [esi], edx
mov dword [ebp - 0x1c], 0xa41a774d
add esi, 4
add edi, 0xffe9b03b
sub edi, 0xffe9b037
loop 0x41af23
add eax, 0x120c3
mov ebx, eax
add eax, 0x62641d92
sub eax, 0x62641d8d
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x401037
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [0x439618]
mov dword [ebp - 0x28], eax
mov eax, dword [0x43961c]
xor ebx, ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
call fcn.00401030
mov eax, dword [0x439620]
add dword [ebp - 0x14], 0x23f
mov dword [ebp - 0x30], eax
mov eax, dword [0x439624]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x1a2a1c4], 0xc
mov dword [ebp - 4], eax
jne 0x4010b9
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x43c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov eax, dword [0x1a2a1c4]
cmp eax, 0xfa9
jne 0x4010d5
mov dword [0x1a2a1c0], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010ed
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x1a2a114], ebx
mov eax, dword [ebp - 0x14]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a2a1bc], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 8], eax
sub esi, dword [ebp - 8]
cmp dword [0x1a2a1c4], 0xc
mov dword [ebp - 4], eax
jne 0x40114f
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], 0x61c88647
sub edi, eax
dec dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
jne 0x401089
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 4
Function at 0x404b27
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43833c]
jne 0x404b31
repz ret
jmp fcn.0040ad06

Function at 0x40bd34
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404c2c
and dword [ebp - 4], 0
cmp dword [0x4429f4], 0
mov ebx, eax
jne 0x40bde5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40be96
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40be96
push eax
call fcn.00404bba
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4429f4], eax
call esi
push eax
call fcn.00404bba
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4429f8], eax
call esi
push eax
call fcn.00404bba
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4429fc], eax
call esi
push eax
call fcn.00404bba
pop ecx
mov dword [0x442a04], eax
test eax, eax
je 0x40bde5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404bba
pop ecx
mov dword [0x442a00], eax
mov eax, dword [0x442a00]
cmp eax, ebx
je 0x40be3d
cmp dword [0x442a04], ebx
je 0x40be3d
push eax
call fcn.00404c35
push dword [0x442a04]
mov esi, eax
call fcn.00404c35
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40be3d
test edi, edi
je 0x40be3d
call esi
test eax, eax
je 0x40be34
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40be34
test byte [ebp - 0xc], 1
jne 0x40be3d
or dword [ebp + 0x10], 0x200000
jmp 0x40be76
mov eax, dword [0x4429f8]
cmp eax, ebx
je 0x40be76
push eax
call fcn.00404c35
pop ecx
test eax, eax
je 0x40be76
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40be76
mov eax, dword [0x4429fc]
cmp eax, ebx
je 0x40be76
push eax
call fcn.00404c35
pop ecx
test eax, eax
je 0x40be76
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4429f4]
call fcn.00404c35
pop ecx
test eax, eax
je 0x40be96
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40be98
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002ba9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x1004600c]
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.10014520
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 0x10002c20
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10002c20
call fcn.1000169d
mov esi, eax
jmp 0x10002cd3
push dword [esp + 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10002c3c
call fcn.1000169d
jmp 0x10002cc6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x10002c32
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea ecx, [esi + 1]
cmp ecx, esi
jae 0x10002c62
mov esi, 0x8007000e
jmp 0x10002cc8
push 2
pop edx
lfence
call fcn.10007839
cmp eax, 0x400
jbe 0x10002c83
push eax
lea ecx, [esp + 0x1c]
lfence
call fcn.10007553
jmp 0x10002c8b
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
je 0x10002c5b
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 0x10002c32
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.10003788
mov esi, eax
test edi, edi
je 0x10002cd3
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x1c]
cmp dword [esp + 0x18], eax
je 0x10002ce6
lea ecx, [esp + 0x18]
call fcn.10006de0
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100112bf
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10007e88
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 0x10007ee1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10007ee1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x10007ed0
cmp esi, ecx
jae 0x10007ee1
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x10007ebe
cmp esi, ecx
jae 0x10007ee1
cmp word [esi], 0
je 0x10007ee1
lfence
mov eax, esi
jmp 0x10007ee3
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10009217
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1004600c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push esi
push edi
mov esi, ecx
call fcn.100047ab
push eax
lea ecx, [ebp - 8]
call fcn.10006da7
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 0x10009260
push edi
lea ecx, [ebp - 8]
call fcn.100074f8
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.10006732
test esi, esi
jne 0x10009282
mov edi, 0x80004005
jmp 0x1000932a
push ebx
push ecx
push ecx
lea ecx, [ebp - 8]
call fcn.10009c58
push 0
push 0x5c
lea ecx, [ebp - 8]
call fcn.10009c1f
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100092a8
mov ecx, dword [ebp - 8]
mov eax, dword [ecx - 0xc]
jmp 0x100092aa
mov eax, ebx
and dword [ebp - 0xc], 0
lea ecx, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10009b85
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.1000a916
test al, al
jne 0x100092e9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100092e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.1000a916
test al, al
je 0x10009308
cmp ebx, 0xffffffff
je 0x1000931f
lea eax, [ebx + 1]
push eax
push 0x5c
lea ecx, [ebp - 8]
call fcn.10009c1f
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.10004782
jmp 0x1000929b
test edi, edi
jle 0x10009315
movzx edi, di
or edi, 0x80070000
lea ecx, [esi - 0x10]
call fcn.10004782
jmp 0x10009329
lea ecx, [esi - 0x10]
call fcn.10004782
xor edi, edi
pop ebx
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.10004782
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.100112bf
leave
ret
Function at 0x10009345
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1004600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
jne 0x1000936c
mov eax, 0x80070057
jmp 0x1000941b
push edi
mov ecx, esi
call fcn.10007c7d
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10014520
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 0x100093fc
movzx ecx, bl
cmp ecx, 0x26
jne 0x100093b1
mov edx, str.ProgramFiles
jmp 0x100093c7
cmp ecx, 0x1c
jne 0x100093bd
mov edx, str.LocalAppData
jmp 0x100093c7
cmp ecx, 0x23
jne 0x100093e8
mov edx, str.ProgramData
lea ecx, [ebp - 0x210]
call fcn.10009481
push eax
mov ecx, esi
call fcn.10009cbe
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.10004782
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x100093f5
xor eax, eax
inc eax
jmp 0x1000941a
lfence
mov eax, edi
jmp 0x1000941a
lea eax, [ebp - 0x20c]
push eax
call fcn.100163e8
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.10007cbe
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100112bf
leave
ret
Function at 0x1000a63f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x1004600c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], 0x11c
push 0
push eax
call fcn.10014520
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1000a7e6
mov ecx, dword [ebp - 0x120]
cmp ecx, 6
je 0x1000a6ef
cmp ecx, 0xa
je 0x1000a6ef
cmp ecx, 5
jne 0x1000a7e6
cmp dword [ebp - 0x11c], 2
jne 0x1000a6cd
cmp byte [ebp - 0xa], 1
jne 0x1000a6b9
call fcn.1000a546
cmp eax, 9
je case.0x1000a735.1
test dword [ebp - 0xc], 0x8000
jne 0x1000a7e6
push 2
jmp 0x1000a7b1
cmp dword [ebp - 0x11c], 1
jne 0x1000a7e6
test dword [ebp - 0xc], 0x200
jne 0x1000a7e6
xor eax, eax
inc eax
jmp 0x1000a7e8
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 8]
and dword [ebp - 8], 0
push eax
push ecx
push ecx
call fcn.1000a3fc
add esp, 0xc
test eax, eax
je 0x1000a7e6
mov eax, dword [ebp - 8]
cmp eax, 0x30
ja 0x1000a78e
je case.0x1000a735.1
cmp eax, 0xb
ja 0x1000a73c
je case.0x1000a735.2
dec eax
cmp eax, 9
ja case.0x1000a735.2
movzx eax, byte [eax + 0x1000a80f]
jmp dword [eax*4 + 0x1000a7fb]
cmp eax, 0x10
ja 0x1000a76d
je case.0x1000a735.4
sub eax, 0xc
je case.0x1000a735.7
sub eax, 1
je case.0x1000a735.7
sub eax, 1
je case.0x1000a735.7
sub eax, 1
je case.0x1000a735.7
jmp case.0x1000a735.2
sub eax, 0x11
je case.0x1000a735.7
sub eax, 1
je case.0x1000a735.7
sub eax, 7
je case.0x1000a735.7
dec eax
sub eax, 1
jmp 0x1000a7cb
cmp eax, 0x7d
ja 0x1000a7b4
je case.0x1000a735.4
sub eax, 0x46
je case.0x1000a735.4
dec eax
sub eax, 1
je case.0x1000a735.4
sub eax, 0xc
je case.0x1000a735.4
sub eax, 0x25
je 0x1000a7af
sub eax, 1
jne case.0x1000a735.2
push 4
pop eax
jmp 0x1000a7e8
sub eax, 0x7e
je case.0x1000a735.4
sub eax, 3
je case.0x1000a735.4
sub eax, 1
je case.0x1000a735.4
sub eax, 0x3a
je case.0x1000a735.4
sub eax, 3
je case.0x1000a735.4
mov al, byte [ebp - 0xa]
cmp al, 3
je case.0x1000a735.7
cmp al, 2
je case.0x1000a735.7
test byte [ebp - 0xc], 2
jne case.0x1000a735.4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100112bf
leave
ret
push 3
jmp 0x1000a7b1

Function at 0x1000afb8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1004600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x1000afd3
mov al, 1
jmp 0x1000b016
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.10014520
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1000b00e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LOG_SYSTEM:_ERROR____::GetFileInformationByHandle_failed___d_
call fcn.1000db76
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1000afcf
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100112bf
leave
ret
Function at 0x1000b488
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1004600c]
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.1000c1f0
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x1000b52d
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 0x1000b538
mov byte [ebx + 0x74], 1
mov dword [ebx + 0x76], 0x1000101
cmp byte [ebx + 0x75], 0
je 0x1000b542
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 + 0x10047810]
mov ecx, dword [eax + 0x10047814]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
test edx, edx
je 0x1000b5bb
cmp ecx, 9
ja 0x1000b5bb
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, ebx
mov dword [ebp - 0x14], 3
call fcn.1000c1f0
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x1000b59e
push esi
push 3
push dword [ebp - 0x10]
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x1000b5a1
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.10004782
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
cmp eax, 0x48
jb 0x1000b551
call fcn.1000af3e
lea ecx, [edi - 0x10]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
call fcn.10004782
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100112bf
leave
ret
Function at 0x1000b5ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1004600c]
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.100047ab
push eax
lea ecx, [ebp - 8]
call fcn.10006da7
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 0x1000b639
push edx
lea ecx, [ebp - 8]
call fcn.100074f8
mov edi, dword [ebp - 8]
and dword [ebp - 0xc], 0
call fcn.100047ab
push eax
lea ecx, [ebp - 0xc]
call fcn.10006da7
call fcn.1000d889
test al, al
jne 0x1000b66b
call fcn.1000cda9
test al, al
jne 0x1000b66b
mov dword [ebp - 0x10], 0x1c
mov esi, str.Temp
jmp 0x1000b677
mov dword [ebp - 0x10], 0x23
mov esi, str.MicrosoftEdgeUpdateLog
push esi
call fcn.100163e8
pop ecx
push eax
push esi
lea ecx, [ebp - 0xc]
call fcn.10007cbe
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 0x1000b6c4
push 0x100320b8
mov ecx, ebx
call fcn.10009d0c
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.10004782
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.10006732
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
jmp 0x1000b709
mov esi, dword [ebp - 0xc]
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x1000b6e1
push 0x100320b8
mov ecx, ebx
call fcn.10009d0c
jmp 0x1000b6f1
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.10009f32
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esi - 0x10]
call fcn.10004782
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.10006732
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.10004782
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100112bf
leave
ret 4

Function at 0x1000b7d8
Capabilities:
Print debug messages

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0xe0], 0
jne 0x1000b823
push esi
push 0x40
call fcn.10011dc3
push 0x40
mov esi, eax
push 0
push esi
call fcn.10014520
add esp, 0xc
mov ecx, esi
call fcn.1000dd74
mov dword [edi + 0xe0], eax
pop esi
test eax, eax
jne 0x1000b823
push dword [edi + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_ETW_log_writer
call fcn.1000db76
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [edi + 0xe0]
test eax, eax
je 0x1000b835
push eax
mov ecx, edi
call fcn.1000c161
pop edi
ret