joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c2a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4493d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x10], esi
cmp dword [edi + 0xc], esi
jne 0x41c348
mov eax, dword [edi + 0x20]
cmp dword [eax], esi
jne 0x41c2f2
push 0xfc01
mov dword [eax], 0xfc00
call fcn.0042c8b5
mov ecx, dword [edi + 0x1c]
add esp, 4
mov dword [ecx], eax
mov ecx, dword [edi + 0x20]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx]
add edx, ebx
cmp edx, eax
jae 0x41c305
mov eax, dword [ebp + 0xc]
jmp 0x41c307
sub eax, ebx
mov dword [ebp - 0x10], eax
cmp eax, esi
jbe 0x41c32b
mov ecx, dword [ecx]
mov edx, dword [edi + 0x1c]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [edx]
sub ecx, ebx
push ecx
add eax, ebx
push eax
call fcn.0042f39b
mov eax, dword [ebp - 0x10]
add esp, 0x10
sub eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], esi
jne 0x41c3d9
xor eax, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
push esi
mov dword [ebp - 4], esi
mov ebx, dword [edi + 0x18]
push 0x80
push 1
lea esi, [ebp - 0x2c]
call fcn.004061d0
push eax
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
cmp eax, 0xffffffff
jne 0x41c3cf
cmp dword [edi + 0x10], 0
je 0x41c3af
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push edx
push 6
call eax
lea esi, [ebp - 0x2c]
call fcn.00406060
mov eax, 6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [ebp - 0x2c]
call fcn.00406060
xor esi, esi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [eax]
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x10]
sub eax, esi
neg eax
sbb eax, eax
and eax, 6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41ca90
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ade8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x45e020]
mov edx, dword [eax + 0xc]
mov ecx, 0x45e020
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x41caf7
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004035c0
mov esi, dword [ebp - 0x10]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f9ba
add esp, 8
test eax, eax
js 0x41cc48
cmp eax, dword [esi - 8]
jg 0x41cc48
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
je 0x41cc52
mov ecx, dword [esi - 0xc]
cmp ecx, 0xe6
jg 0x41cc52
lea eax, [ecx - 1]
test eax, eax
js 0x41cc48
cmp eax, ecx
jg 0x41cc48
cmp word [esi + eax*2], 0x5c
je 0x41cb69
push 0x5c
lea edi, [ebp - 0x10]
call fcn.0041cc90
mov esi, dword [ebp - 0x10]
push str..exe
lea ecx, [ebp - 0x18]
call fcn.00402c30
push str.EbonBrowser
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00402c30
mov byte [ebp - 4], 2
xor edi, edi
lea ecx, [ecx]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push edx
push edi
push eax
push esi
push str._s_s_i_s
push ebx
call fcn.004032e0
inc edi
add esp, 0x18
cmp edi, 0x3e8
jge 0x41cbbf
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41cb90
xor ecx, ecx
cmp edi, 0x3e8
setne cl
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov edi, ecx
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41cbef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cc12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cc35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403700
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cc75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41d300
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ad78
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x44d920
mov dword [ebp - 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x41d3d6
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00402c30
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0xe
push str.EbonEbon.exe
lea ebx, [ebp - 0x14]
call fcn.00402e80
push 0x38
lea eax, [ebp - 0x4c]
push 0
push eax
mov dword [ebp - 0x50], 0x3c
call fcn.004317a0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 0x4c], 0x2000100
mov dword [ebp - 0x44], str.open
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d3d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d7f0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b938
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push 0
push 0
je 0x41d830
push 0x41d7d0
jmp 0x41d835
push 0x41d7e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x2710
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41d886
push str.InstallThread_timeout
push 3
push 3
push 0x139
push str.InstallAsync
push str.Installer.cpp
lea ecx, [ebp - 0x18]
call fcn.0042d6f0
push eax
call fcn.0042d910
add esp, 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test esi, esi
je 0x41d891
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41e030
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
cmp esi, edi
je 0x41e076
push 1
push edi
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 0xa
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
ret
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 0xa
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret
Function at 0x41e300
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x45e274]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x22c
mov edi, eax
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.004317a0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
test edi, edi
je 0x41e41d
lea ecx, [ebp - 0x230]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41e41d
mov ecx, str.Ebon.exe
lea eax, [ebp - 0x20c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41e396
test dx, dx
je 0x41e392
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41e396
add eax, 4
add ecx, 4
test dx, dx
jne 0x41e370
xor eax, eax
jmp 0x41e39b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41e3b4
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f25f
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea edx, [ebp - 0x230]
push edx
push edi
call esi
test eax, eax
je 0x41e41d
jmp 0x41e3d0
mov ecx, str.Ebon.exe
lea eax, [ebp - 0x20c]
jmp 0x41e3e0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41e406
test dx, dx
je 0x41e402
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41e406
add eax, 4
add ecx, 4
test dx, dx
jne 0x41e3e0
xor eax, eax
jmp 0x41e40b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41e39f
lea eax, [ebp - 0x230]
push eax
push edi
call esi
test eax, eax
jne 0x41e3d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0042f25f
mov esp, ebp
pop ebp
ret
Function at 0x41ef20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
mov dword [esi + 0x78], eax
mov dword [esi + 0xac], 0
jne 0x41ef45
push esi
call fcn.0041f020
mov esp, ebp
pop ebp
ret 4
cmp dword [0x461620], 0
je 0x41ef69
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x41ef69
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xa8], 0
push 0
push 0
push esi
push 0x41efd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xa8], eax
test eax, eax
jne 0x41efbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_creating_working_thread__error:__u.
push 3
push 3
push 0x170
push str.CInstallingStrategy::Continue
push str.InstallingStrategy.cpp
lea ecx, [ebp - 0xc]
call fcn.0042d6f0
push eax
call fcn.0042d910
add esp, 0x14
xor eax, eax
mov esp, ebp
pop ebp
ret 4
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x41eff0
Capabilities:
Create thread

Disassembly:
push edi
lea edi, [eax + 0x7c]
call fcn.00421f30
cmp dword [edi + 4], 0
jne 0x41f016
push 0
push 0
push edi
push 0x421d10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
pop edi
ret
Function at 0x41f930
Capabilities:
Get common file path
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b500
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00422cf0
mov ecx, dword [ebp + 0xc]
call fcn.004239e0
lea eax, [ebp - 0x10]
push eax
xor esi, esi
push esi
push esi
push 0x44d920
mov dword [ebp - 0x10], esi
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
cmp eax, esi
jl 0x41f9db
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00402c30
mov dword [ebp - 4], esi
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0xe
push str.EbonEbon.exe
lea ebx, [ebp - 0x14]
call fcn.00402e80
mov eax, dword [ebp - 0x14]
push eax
mov edi, 0x4616ec
call fcn.00426fc0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f9db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp word [0x4616e4], 0
jne 0x41fa36
cmp dword [0x461610], 0
jne 0x41fa36
lea edi, [ebp - 0x18]
call fcn.0040e7d0
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], 0
je 0x41fa13
mov esi, 0x4616e4
call fcn.00426f30
mov edi, dword [ebp - 0x18]
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fa36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [0x461604], 0
jne 0x41fa66
cmp word [0x4616ec], 0
je 0x41fa53
mov dword [0x4615f0], 1
cmp dword [0x46160c], 0
je 0x41fa66
mov dword [0x4615f0], 0
push 0x11
push str.STRING_NOT_FOUND_
mov ecx, 0x461708
call fcn.00403370
mov eax, dword [0x461624]
lea eax, [eax + eax*8]
lea eax, [eax*4 + 0x45fd28]
mov ax, word [eax]
mov ecx, 0x70
mov ebx, 0x461708
call fcn.0040d700
test eax, eax
jne 0x41faab
mov eax, dword [0x45fd28]
mov ecx, 0x70
call fcn.0040d700
push 0x37
push str.Mozilla_5.0__Windows_NT_6.3__WOW64__EBInstaller_1.3.0.0
mov ecx, 0x461704
call fcn.00403370
cmp dword [0x4615f4], 0
mov ecx, dword [ebp + 8]
mov dword [0x461618], ecx
jne 0x41fb08
cmp word [0x4616e4], 0
je 0x41fb08
mov edx, dword [0x4616d8]
mov eax, dword [edx]
cmp eax, edx
je 0x41fb08
mov esi, dword [0x45fd14]
mov ecx, dword [0x45fd0c]
cmp esi, 1
jbe 0x41fb02
test ecx, ecx
je 0x41fb3b
mov edi, dword [ecx + 8]
mov dword [0x46161c], edi
mov eax, dword [eax]
cmp eax, edx
jne 0x41faf0
cmp dword [0x461604], 0
je 0x41fb24
cmp byte [0x4616b0], 0
je 0x41fb24
call fcn.00424040
call fcn.00424170
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403700
int3
Function at 0x420c70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
test eax, eax
je 0x420c90
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x420ca6
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 4], 0
mov ecx, dword [ebp + 8]
push edi
push 0x4522e0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x420cc7
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x420d80
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x420d80
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi], eax
test eax, eax
je 0x420d76
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x420d76
push ebx
push edi
push eax
call fcn.00432ab0
mov eax, dword [esi]
add esp, 0xc
lea edx, [ebp + 8]
push edx
xor edi, edi
push edi
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x420d76
mov ecx, dword [ebp + 8]
push ecx
call fcn.00420c30
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
add esp, 4
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esi + 4]
cmp eax, edi
je 0x420d76
mov ecx, dword [eax + 8]
mov dword [eax + 8], edi
cmp ecx, edi
jne 0x420d73
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 4], edi
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x421200
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ac30
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str._INI_
lea ecx, [ebp - 0x10]
call fcn.00402c30
lea esi, [edi + 0x60]
lea eax, [ebp - 0x14]
push esi
push eax
mov ebx, str..ini_
mov dword [ebp - 4], 0
call fcn.004076f0
add esp, 8
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x10]
call fcn.00402e80
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421289
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
call fcn.00421170
test eax, eax
jne 0x4212a3
push 3
push 0x454084
lea ecx, [ebp - 0x10]
call fcn.00403370
push 0x38
lea ecx, [ebp - 0x4c]
push 0
push ecx
mov dword [ebp - 0x50], 0x3c
call fcn.004317a0
mov edx, dword [esi]
mov eax, dword [ebp - 0x10]
add esp, 0xc
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x3c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edx, dword [ebp - 0x18]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push esi
push eax
mov ebx, 0x454620
call fcn.004076f0
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42131c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42134c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4218d0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ac00
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x60]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4219e9
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00427520
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x421952
push 0x24
push str.uninstallEbonBrowserUninstaller.exe
lea ebx, [ebp - 0x14]
call fcn.00402e80
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0x60]
push 0
push ecx
push eax
call edi
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004275f0
test eax, eax
je 0x4219a0
push 0x13
push str.EBMEUninstaller.exe
lea ebx, [ebp - 0x10]
call fcn.00402e80
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4219a3
mov esi, dword [esi + 0x60]
push 0
push ebx
push esi
call edi
jmp 0x4219a3
mov ebx, dword [ebp - 0x10]
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4219c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4219e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421a90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44abd0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x45e020]
mov edx, dword [eax + 0xc]
mov ecx, 0x45e020
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00427520
test eax, eax
jne 0x421b1a
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421b06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x18
push str.EBNotificationEngine.exe
lea ebx, [ebp - 0x10]
call fcn.00402e80
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421be2
mov ecx, str.EBNotificationEngine
call fcn.00424970
lea eax, [ebx - 0x10]
push eax
call fcn.00403470
lea esi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x14], esi
mov eax, 1
mov byte [ebp - 4], al
cmp dword [esi - 4], eax
jle 0x421b73
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004034e0
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f9ba
add esp, 8
test eax, eax
js 0x421c1c
cmp eax, dword [esi - 8]
jg 0x421c1c
xor edx, edx
push edx
push 4
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
push str.This_task_user_for_work_Ebonmedia_software
push str.EBNotificationEngine
mov edx, esi
mov ecx, 0x451464
mov edi, 0x454c04
call fcn.00424870
add esi, 0xfffffff0
add esp, 0x10
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x421be2
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421c05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403700
int3