joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cd19
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41af20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040972e
mov dword [ebp - 0x14], eax
cmp dword [0x4445fc], esi
jne 0x40ce0c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40cd99
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ceec
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ceec
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ceec
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4445fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x444600], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x444604], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44460c], eax
test eax, eax
je 0x40ce09
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x444608], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ce31
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ce24
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40ce46
push 4
pop eax
jmp 0x40ceee
cmp dword [ebp - 0x14], esi
je 0x40ce46
push dword [0x4445fc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40ce2b
mov eax, dword [0x444608]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40cea4
cmp dword [0x44460c], edi
je 0x40cea4
push eax
call ebx
push dword [0x44460c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40cea4
test eax, eax
je 0x40cea4
call ecx
test eax, eax
je 0x40ce99
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40ce99
test byte [ebp - 8], 1
jne 0x40cea4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40ced4
mov eax, dword [0x444600]
cmp eax, edi
je 0x40ced1
push eax
call ebx
test eax, eax
je 0x40ced1
call eax
mov esi, eax
test esi, esi
je 0x40ced1
mov eax, dword [0x444604]
cmp eax, edi
je 0x40ced1
push eax
call ebx
test eax, eax
je 0x40ced1
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4445fc]
call ebx
test eax, eax
je 0x40ceec
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ceee
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404187
mov esp, ebp
pop ebp
ret
Function at 0x40163d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43e07c]
jne 0x401647
repz ret
jmp fcn.0040220e

Function at 0x406b6a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43e07c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040405d
and dword [ebp - 0x14], 0
cmp dword [0x440a4c], 0
mov dword [ebp - 0x18], eax
jne 0x406c1d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406cc5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406cc5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x440a4c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x440a50], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x440a54], eax
call edi
push eax
call esi
mov dword [0x440a5c], eax
test eax, eax
je 0x406c1d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x440a58], eax
mov eax, dword [0x440a58]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406c76
cmp dword [0x440a5c], ecx
je 0x406c76
push eax
call esi
push dword [0x440a5c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406c76
test ebx, ebx
je 0x406c76
call edi
test eax, eax
je 0x406c6d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406c6d
test byte [ebp - 8], 1
jne 0x406c76
or dword [ebp + 0x10], 0x200000
jmp 0x406ca9
mov eax, dword [0x440a50]
cmp eax, dword [ebp - 0x18]
je 0x406ca9
push eax
call esi
test eax, eax
je 0x406ca9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406ca9
mov eax, dword [0x440a54]
cmp eax, dword [ebp - 0x18]
je 0x406ca9
push eax
call esi
test eax, eax
je 0x406ca9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x440a4c]
call esi
test eax, eax
je 0x406cc5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406cc7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040163d
leave
ret
Function at 0x421830
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push ebx
push esi
mov esi, dword [edx + 4]
mov ebx, ecx
mov dword [esp + 8], esi
mov dword [edx], esi
push edi
test ebx, ebx
je 0x421996
cmp word [ebx], 0
je 0x421996
push 4
push 0x4dc368
push ebx
call fcn.004aa4e8
add esp, 0xc
test eax, eax
je 0x421876
mov eax, ebx
mov edi, eax
jmp 0x42187f
lea eax, [ebx + 8]
mov edi, eax
test eax, eax
je 0x4218c1
movzx eax, word [eax]
test ax, ax
je 0x4218c1
mov esi, eax
nop dword [eax]
mov ecx, 0x4d4d98
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x421909
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4218a0
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x421890
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp + 8]
mov edx, eax
test ecx, ecx
je 0x4218db
and eax, ecx
cmp eax, ecx
jne 0x421996
cmp edx, 0xffffffff
setne al
test al, al
je 0x421996
mov ecx, dword [esp + 0xc]
call fcn.00482960
cmp word [ecx], 0
jne 0x42199f
mov dword [ecx], 0x58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x421996
cmp word [esp + 0x3c], 0x2e
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jne 0x42195c
nop word [eax + eax]
mov ax, word [esp + 0x3e]
test ax, ax
je 0x421948
cmp ax, 0x2e
jne 0x42195c
cmp word [esp + 0x40], 0
jne 0x42195c
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
je 0x421996
cmp word [esp + 0x3c], 0x2e
je 0x421930
mov esi, dword [ebp + 8]
test esi, esi
je 0x421986
mov eax, dword [esp + 0x10]
and eax, esi
cmp eax, esi
je 0x421986
nop dword [eax]
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
je 0x421996
mov eax, dword [esp + 0x10]
and eax, esi
cmp eax, esi
jne 0x421970
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x10]
jmp 0x4218e9
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x403203
pop dword [ebp - 0x38]
mov eax, 0xf46be6f
sub eax, 0xf068c6c
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x4ae852dc
add dword [ebp - 0x48], 0x369f26f
mov dword [ebp - 0x44], 0xbbcb335d
sub dword [ebp - 0x44], 0x8997e718
mov dword [ebp - 0x40], 0xb2c05bbe
sub dword [ebp - 0x40], 0x66741790
mov dword [ebp - 0x3c], 0xda4ac4e3
sub dword [ebp - 0x3c], 0xda4ac4e3
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xae665116
sub dword [ebp - 0x48], 0x39f3e7c0
mov dword [ebp - 0x44], 0xefa304ef
sub dword [ebp - 0x44], 0xae36a37a
mov dword [ebp - 0x40], 0x62569072
add dword [ebp - 0x40], 0x118dbfa
mov dword [ebp - 0x3c], 0xacf03b49
add dword [ebp - 0x3c], 0x530fc4b7
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x2d4bd5c8
sub eax, 0x2d0b54f4
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x38b09
push 0
call eax
mov ecx, 0x5062
xor esi, esi
add esi, eax
mov edi, 0x2dc799b8
sub edi, 0x2d8689b8
add edi, dword [ebp - 0x38]
mov edx, 0x49018b10
xor dword [ebp - 0x24], esi
mov ebx, dword [edi]
sub dword [ebp - 0x10], eax
xor ebx, edx
sub dword [ebp - 8], edi
mov dword [esi], ebx
add dword [ebp - 0x2c], esi
add esi, 0xabde3832
add esi, 0x5421c7d2
add edi, 4
loop 0x403316
add eax, 0x1345b
mov ebx, eax
add eax, 5
mov ecx, 0x7767203f
sub ecx, 0x7727203f
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x403e59
pop dword [ebp - 0xc]
mov eax, 0x458840aa
add eax, 0xbab7fdaf
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x6f965e89
add dword [ebp - 0x1c], 0xdebbe6c2
mov dword [ebp - 0x18], 0x567768a0
sub dword [ebp - 0x18], 0x24441c5b
mov dword [ebp - 0x14], 0x6b277954
add dword [ebp - 0x14], 0xe124cada
mov dword [ebp - 0x10], 0x681e246b
add dword [ebp - 0x10], 0x97e1db95
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x6916b0e4
add dword [ebp - 0x1c], 0xb5bb872
mov dword [ebp - 0x18], 0x5ed0203
sub dword [ebp - 0x18], 0xc480a08e
mov dword [ebp - 0x14], 0x78c52f47
add dword [ebp - 0x14], 0xeaaa3d25
mov dword [ebp - 0x10], 0xdd2838de
sub dword [ebp - 0x10], 0xdd2838de
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xef367d33
sub eax, 0xeef60c8b
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3645d
push 0
call eax
mov ecx, 0x461a
mov edi, eax
mov edx, 0x410000
add edx, dword [ebp - 0xc]
mov esi, 0x365ba12a
mov dword [ebp - 4], 0x445c0da8
mov ebx, dword [edx]
xor dword [ebp - 4], 0x3793191a
sub ebx, esi
xor dword [ebp - 8], 0x4f61f64
mov dword [edi], ebx
xor dword [ebp - 4], esi
add edi, 0x606be923
sub edi, 0x606be91f
add edx, 0xdf453fca
add edx, 0x20bac03a
loop 0x403f64
add eax, 0xd6a2f32e
add eax, 0x295e180d
mov ebx, eax
add eax, 0xd544c998
add eax, 0x2abb366d
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x42ca10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x425025
lea edi, [esi - 0x24025]
push edi
jmp 0x42ca2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42ca31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42ca20
mov eax, 1
add ebx, ebx
jne 0x42ca43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42ca38
jne 0x42ca54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ca38
xor ecx, ecx
sub eax, 3
jb 0x42ca68
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42cada
mov ebp, eax
add ebx, ebx
jne 0x42ca73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42ca80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42caa4
inc ecx
add ebx, ebx
jne 0x42ca90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42ca85
jne 0x42caa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ca85
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42cac4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42cab5
jmp 0x42ca26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42cac4
add edi, ecx
jmp 0x42ca26
pop esi
mov edi, esi
mov ecx, 0xfb7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42cae2
cmp byte [edi], 4
jne 0x42cae2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42cae7
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x42cb5f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2c8e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2c920]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42cb14
mov ecx, edi
jns 0x42cb43
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2c928]
or eax, eax
je 0x42cb59
mov dword [ebx], eax
add ebx, 4
jmp 0x42cb31
call dword [esi + 0x2c924]
mov ebp, dword [esi + 0x2c92c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1af]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42cb93
sub esp, 0xffffff80
jmp 0x403004
Function at 0x10002291
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
mov esi, ecx
lea eax, [esi + 8]
xor ebx, ebx
cmp dword [eax + 0x14], 8
jb 0x100022a1
mov eax, dword [eax]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x100022e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100022c7
mov al, 1
mov byte [esi + 0x24], al
pop esi
pop ebx
ret
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], ebx
mov byte [esi + 0x24], bl
pop esi
mov al, bl
pop ebx
ret

Function at 0x10002320
Capabilities:
Check mutex on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexW]
push edi
cmp dword [esi + 0x1c], 8
jb 0x10002333
mov eax, dword [esi + 8]
jmp 0x10002336
lea eax, [esi + 8]
push eax
push 1
push 0
call ebx
mov dword [esi + 4], eax
test eax, eax
jne 0x10002359
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x10002359
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10002328
cmp dword [esi + 4], 0
je 0x100023b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000237f
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov bl, 1
mov ecx, esi
mov byte [esi + 0x24], bl
call edx
pop edi
mov al, bl
pop ebx
ret
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100023b1
mov ecx, dword [esi + 4]
push ecx
mov bl, 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
mov dword [esi + 4], 0
pop ebx
ret
pop edi
xor al, al
pop ebx
ret

Function at 0x10006660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
mov edi, eax
push 0x40000000
push edi
mov dword [esi + 8], ebx
mov word [esi + 0xc], bx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x100066c3
push ebx
push 0x80
push 1
push ebx
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
lea ecx, [ebp - 8]
push ecx
push 2
lea edx, [ebp - 4]
push edx
push eax
mov dword [esi], eax
mov dword [ebp - 4], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 8
call fcn.100affa5
add esp, 4
cmp eax, ebx
je 0x100066da
mov dword [eax], ebx
mov byte [eax + 4], bl
mov edi, eax
jmp 0x100066dc
xor edi, edi
mov dword [esi + 4], edi
cmp dword [edi], ebx
jne 0x100066f5
push str.Local5071F542_DF26_4e46_810E_74570ED35255
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [edi], eax
pop edi
mov eax, esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006700
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cf29e
mov eax, dword fs:[0]
push eax
sub esp, 0x408
mov eax, dword [0x10104610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1010a6b4]
test eax, eax
jne 0x100067ad
lea eax, [ebp - 0x410]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10006766
push eax
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.PDApp.log
lea eax, [ebp - 0x410]
push 0x200
push eax
call fcn.100b02b1
push 0x10
call fcn.100affa5
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x414], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x100067a6
lea eax, [ebp - 0x410]
call fcn.10006660
jmp 0x100067a8
xor eax, eax
mov dword [0x1010a6b4], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100afa0c
mov esp, ebp
pop ebp
ret

Function at 0x10006820
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x10104610]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push edi
lea ecx, [ebp - 0x80c]
push ecx
push 0x200
mov dword [ebp - 0x810], eax
mov edi, 4
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x80c]
push edx
lea eax, [ebp - 0x40c]
push 0x200
push eax
call fcn.100b0142
add esp, 0xc
push str._asu.trace
lea ecx, [ebp - 0x40c]
push 0x200
push ecx
call fcn.100b02b1
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
lea edx, [ebp - 0x40c]
push edx
call ebx
test eax, eax
je 0x1000690e
mov edi, 6
mov byte [esi + 8], 1
mov byte [esi + 9], 1
cmp edi, 4
jl 0x100068b2
mov byte [esi + 0xa], 1
cmp edi, 3
jl 0x100068bb
mov byte [esi + 0xb], 1
cmp edi, 2
jl 0x100068c4
mov byte [esi + 0xc], 1
cmp edi, 1
jl 0x100068cd
mov byte [esi + 0xd], 1
mov ebx, dword [ebp - 0x810]
test ebx, ebx
je 0x100068fc
push 0x100d9f74
push str.Build_Version____s
mov ecx, ebx
mov eax, esi
call fcn.10006ac0
push edi
push str.Logging_Level_verbosity_Set__to__d
mov ecx, ebx
mov eax, esi
call fcn.10006ac0
add esp, 0x10
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop ebx
call fcn.100afa0c
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x80c]
push eax
lea ecx, [ebp - 0x40c]
push 0x200
push ecx
call fcn.100b0142
add esp, 0xc
push str._asu.debug
lea edx, [ebp - 0x40c]
push 0x200
push edx
call fcn.100b02b1
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
call ebx
test eax, eax
je 0x100068ae
mov edi, 5
jmp 0x100068a5
Function at 0x10006c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
push edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10006c70
mov edi, dword [esi + 4]
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, dword [edi]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10006d09
cmp eax, 0xffffffff
je 0x10006d09
cmp eax, 0x80
je 0x10006d09
push 2
push 0
mov byte [edi + 4], 1
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 4]
push edx
mov edx, dword [esi]
lea eax, [ebx + ebx]
push eax
push ecx
push edx
call edi
mov ecx, dword [esi]
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x100da004
push ecx
mov dword [ebp - 4], 0
call edi
mov esi, dword [esi + 4]
cmp byte [esi + 4], 0
je 0x10006d09
mov edx, dword [esi]
push 0
push 1
push edx
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x10006d09
mov byte [esi + 4], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c520
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
cmp dword [edi + 0x10], 0
jne 0x1000c54d
push str.Invalid_Updater_inventory_path.
call fcn.10006700
mov ecx, 0x100d9d70
call fcn.10006b20
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
mov ebx, 8
cmp dword [edi + 0x14], ebx
jb 0x1000c559
mov eax, dword [edi]
push eax
push str.Updater_Inventory_location:_s
call fcn.10006700
mov ecx, 0x100d9d14
call fcn.10006d80
add esp, 8
cmp dword [edi + 0x14], ebx
jb 0x1000c57a
mov eax, dword [edi]
jmp 0x1000c57c
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000c5c7
push str.File_does_not_exist
call fcn.10006700
mov ecx, str.Utilities
call fcn.10006d80
add esp, 4
cmp dword [edi + 0x14], ebx
jb 0x1000c5a5
mov edi, dword [edi]
push edi
push str.updaterInventory.dll_is_not_present_at_Location_:_s
call fcn.10006700
mov ecx, 0x100d9d14
call fcn.10006de0
add esp, 8
mov eax, 0xffffffec
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x18
call fcn.100affa5
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
je 0x1000c606
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp eax, eax
jne 0x1000c610
cmp dword [edi + 0x14], ebx
jb 0x1000c5ef
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
jne 0x1000c610
push str.Failed_to_load_updaterInventory_Library
jmp 0x1000c689
push str.failed_to_create_memeory.
jmp 0x1000c533
mov ecx, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor eax, eax
test ecx, ecx
je 0x1000c626
push str.UpdaterInventoryAddToMCLWithIcon
push ecx
call edi
mov ecx, dword [esi]
mov dword [esi + 8], eax
xor eax, eax
test ecx, ecx
je 0x1000c639
push str.UpdaterInventoryRelease
push ecx
call edi
mov ecx, dword [esi]
mov dword [esi + 0xc], eax
xor eax, eax
test ecx, ecx
je 0x1000c64c
push str.UpdaterInventoryRemoveFromMCL
push ecx
call edi
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
xor eax, eax
test ecx, ecx
je 0x1000c65f
push str.UpdaterInventoryIsHigherUpdatePresent
push ecx
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x14], eax
je 0x1000c684
cmp dword [esi + 0xc], 0
je 0x1000c684
cmp dword [esi + 0x10], 0
je 0x1000c684
test eax, eax
je 0x1000c684
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push str.Failed_to_API_Handle_of_Updator_Inventory
call fcn.10006700
mov ecx, 0x100d9d70
call fcn.10006b50
add esp, 4
call fcn.1000c4e0
pop edi
pop esi
mov eax, 0xffffffec
pop ebx
pop ebp
ret