joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416ae0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44adc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x45e274]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0x7e9
jne 0x416c11
mov esi, dword [ebp + 8]
or ebx, 0xffffffff
cmp dword [ebp + 0x14], 1
jne 0x416b78
cmp dword [esi + 0x1ec], ebx
jne 0x416b78
mov ecx, dword [esi + 0x1e0]
lea eax, [esp + 0x14]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
fld dword [0x45fd08]
mov edx, dword [esp + 0x1c]
fmul qword [0x4560a8]
mov eax, dword [esp + 0x18]
mov edi, dword [esi + 0x1f8]
push 0x44
push edx
push eax
call fcn.00448120
push eax
push 0x14
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, esi
call fcn.00416db0
cmp dword [esi + 0x1dc], 3
jae 0x416bf7
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], 0
mov ecx, dword [esi + 0x1dc]
mov eax, dword [esi + ecx*4 + 0x1d0]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.0041c780
mov eax, dword [esi + 0x1dc]
mov eax, dword [esi + eax*4 + 0x1d0]
mov edi, dword [esp + 0x18]
add esp, 8
push 1
push edi
add esi, 0x1ac
call fcn.0041b350
lea eax, [edi - 0x10]
mov dword [esp + 0x38], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x416bf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp eax, 0x113
jne 0x416c3a
mov eax, dword [ebp + 8]
call fcn.00416db0
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp eax, 0x111
jne 0x416c68
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
call edx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp eax, 2
jne 0x416c8d
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push 0x64
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push 2
push eax
push esi
jmp 0x416c9e
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
call fcn.00414c90
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x416e60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebp + 8], edi
jne 0x416efb
mov eax, dword [ebp + 0xc]
push eax
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.00416060
mov ebx, dword [esp + 0x14]
test al, al
je 0x416ed7
mov edx, dword [ebx + 4]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.gdiplus.dll_GdipCreateHBITMAPFromBitmap]
cmp eax, edi
je 0x416eae
mov dword [ebx + 8], eax
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esi - 0xe8]
push ecx
call fcn.00414ea0
mov edx, dword [esi + 0xf4]
mov dword [esi + edx*4 + 0xf8], eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [esp + 0x10]
test edi, edi
je 0x416eed
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
je 0x416efb
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc dword [esi + 0xf4]
cmp dword [esi + 0xf4], 3
jae 0x416f31
mov eax, dword [esi - 0xe4]
xor edx, edx
cmp dword [ebp + 8], edx
push 0
sete dl
push edx
push 0x7e9
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x418b90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b608
mov eax, dword fs:[0]
push eax
push ecx
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
cmp dword [edi + 0x58], 0
je 0x418c14
cmp dword [0x4615f8], 0
je 0x418be9
mov eax, 1
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_EndDialog]
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 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xe
and eax, 2
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
cmp dword [edi + 0x5c], 0
je 0x418c49
push 0x40
push edi
mov ecx, 0x83
call fcn.00419150
jmp 0x418cca
cmp dword [0x461620], 0
jne 0x418c64
push 0x44
push edi
mov ecx, 0x89
call fcn.00419150
cmp eax, 6
jne 0x418cca
mov esi, dword [edi + 0x50]
mov dword [edi + 0x5c], 1
call fcn.0041f440
cmp dword [edi + 0x54], 0
jne 0x418c80
push str.InstallCancelPage1
jmp 0x418c85
push str.InstallCancel
call fcn.004084b0
add esp, 4
cmp dword [edi + 0x54], 0
je 0x418cbe
mov ecx, dword [edi + 4]
push 0x3f0
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
mov esi, 0x83
lea eax, [ebp - 0x10]
call fcn.004151d0
mov ebx, dword [ebp - 0x10]
push ebx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x418cca
mov edx, dword [edi + 4]
push 0xc
push edx
call dword [sym.imp.USER32.dll_EndDialog]
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 0x418ced
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 edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4194c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x45e274]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x5c
lea eax, [ebp - 0x60]
push 0
push eax
mov esi, ecx
call fcn.00431630
add esp, 0xc
mov dword [ebp - 0x60], 0xfffffff4
mov dword [ebp - 0x50], 0x1f4
mov byte [ebp - 0x49], 1
mov byte [ebp - 0x46], 5
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
mov eax, 0x4523e8
ja 0x41950e
mov eax, str.Tahoma
push eax
lea ecx, [ebp - 0x44]
push 0x20
push ecx
call fcn.0043036b
add esp, 0xc
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
push esi
mov ecx, 0x9d
or edi, 0xffffffff
mov dword [esi + 0x44], eax
call fcn.00414fd0
mov eax, dword [esi + 4]
push 0
push 1
push 0x40a
push 0x3ee
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov ecx, dword [0x461708]
mov edx, dword [esi + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0042f0df
mov esp, ebp
pop ebp
ret 8
Function at 0x419f70
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 5
mov esi, eax
mov eax, dword [esi + 4]
push 2
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
mov ecx, dword [esi + 4]
push 5
push 0x3f6
push ecx
call edi
push eax
call ebx
mov edx, dword [esi + 4]
push 0
push 2
push edx
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 4]
push 0
push 0x3ff
push eax
call edi
push eax
call ebx
mov ecx, dword [esi + 4]
push 0
push 0x401
push ecx
call edi
push eax
call ebx
mov edx, dword [esi + 4]
push 0
push 0x400
push edx
call edi
push eax
call ebx
mov esi, dword [esi + 0xec]
mov dword [esi + 0x54], 1
lea eax, [esi + 0x44]
mov esi, dword [esi + 0x50]
push 1
call fcn.0041ef20
pop edi
pop esi
pop ebx
ret

Function at 0x41a000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b568
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x45e020]
mov edx, dword [eax + 0xc]
mov ecx, 0x45e020
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x11
push str.STRING_NOT_FOUND_
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00403370
mov eax, dword [0x461624]
lea eax, [eax + eax*8]
lea eax, [eax*4 + 0x45fd28]
mov ax, word [eax]
mov ecx, edi
lea ebx, [ebp - 0x10]
call fcn.0040d770
test eax, eax
jne 0x41a07e
mov eax, dword [0x45fd28]
mov ecx, edi
call fcn.0040d770
mov ebx, dword [0x461708]
mov edi, dword [ebp - 0x10]
mov ecx, esi
call fcn.0041a300
mov eax, dword [esi + 0xec]
cmp dword [eax + 0x60], 0
je 0x41a0ad
mov dword [eax + 0x60], 0
mov eax, dword [eax + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
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 0x41a0d0
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 edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b350
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov ebx, eax
mov eax, dword [esi + 8]
xor edi, edi
mov dword [esi + 4], 1
cmp eax, edi
je 0x41b384
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 8]
cmp eax, edi
je 0x41b384
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
lea ecx, [esi + 0x14]
cmp ebx, edi
jne 0x41b395
xor eax, eax
jmp 0x41b3b0
mov eax, ebx
lea edx, [eax + 2]
mov dword [ebp - 4], edx
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x41b3a0
sub eax, dword [ebp - 4]
sar eax, 1
push eax
push ebx
call fcn.00403370
mov ebx, dword [ebp + 8]
lea ecx, [esi + 0x18]
cmp ebx, edi
jne 0x41b3c5
xor eax, eax
jmp 0x41b3e0
mov eax, ebx
lea edx, [eax + 2]
mov dword [ebp + 8], edx
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x41b3d0
sub eax, dword [ebp + 8]
sar eax, 1
push eax
push ebx
call fcn.00403370
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0xc], 1
cmp dword [ebp + 0xc], edi
jne 0x41b408
mov ecx, esi
call fcn.0041b470
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push edi
push esi
push 0x41b450
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
cmp eax, edi
jne 0x41b42c
mov eax, 6
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x10]
neg eax
sbb eax, eax
and eax, 0xfffffff9
pop edi
add eax, 7
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41b590
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449f38
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], esi
call fcn.00403300
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0x21
push ebx
call edi
test eax, eax
jne 0x41b6a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41b6a7
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00402da0
test al, al
jne 0x41b629
mov esi, dword [ebp - 0x14]
push esi
mov edi, 0x8007000e
call fcn.0042f1bf
add esp, 4
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 4
push esi
mov esi, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push esi
push 0
push 0x21
push ebx
call edi
test eax, eax
je 0x41b673
mov eax, dword [ebp + 8]
push eax
mov edx, esi
call fcn.00402d10
push esi
call fcn.0042f1bf
add esp, 4
xor esi, esi
push esi
xor edi, edi
call fcn.0042f1bf
add esp, 4
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 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41b687
and eax, 0xffff
or eax, 0x80070000
push esi
mov edi, eax
call fcn.0042f1bf
add esp, 4
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 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x41b6bb
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41c2a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449258
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.0042c735
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.0042f21b
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.004061b0
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.00406040
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.00406040
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 0x44ac98
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.0042f896
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 0x44ac28
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.00431630
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 0x44b7d8
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.0042d570
push eax
call fcn.0042d790
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.00431630
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.0042f0df
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.0042f0df
mov esp, ebp
pop ebp
ret