joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411d60
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4492ab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45d274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0042ce22
push 4
mov dword [ebp - 4], 0
call fcn.0042ef2f
mov edi, eax
add esp, 4
test edi, edi
je 0x411ddc
call fcn.0042c896
mov dword [edi], eax
call fcn.0042c655
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042c58a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x411dd2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0042c5b2
jmp 0x411dde
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413d80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x45d274]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, esi
call fcn.00414e30
mov byte [esi + 0x77], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
mov eax, 0x4523f8
ja 0x413dbe
mov eax, str.Tahoma
push eax
lea edx, [esi + 0x7c]
push 0x20
push edx
call fcn.0043015b
mov ecx, dword [esi + 4]
add esp, 0xc
push 0
push esi
push 0x413d60
lea eax, [esi + 0x60]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_EnumFontFamiliesExW]
cmp byte [esi + 0xd0], 0
je 0x413dfa
call fcn.004142b0
jmp 0x413dff
call fcn.00414130
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x413e5c
push eax
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
lea edx, [esp + 4]
push edx
mov dword [esi + 0xc4], eax
mov eax, dword [esi + 0xc0]
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esi + 4]
push 6
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, esi
call fcn.00413c80
mov ecx, dword [esp + 0x2c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0042eecf
mov esp, ebp
pop ebp
ret 8
Function at 0x414bb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x414c40
push 0
push 0
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], 0x67
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x414c15
push str.MiniDialog_thread_creation_failed.
push 2
push 3
push 0x6c
push str.CDialogBase::DoModalAsync
push str.DialogsDialogBase.cpp
lea ecx, [ebp - 0x14]
call fcn.0042d360
push eax
call fcn.0042d580
add esp, 0x10
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x40]
push ecx
push 2
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
dec eax
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret

Function at 0x415100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, ebx
call fcn.00403300
mov eax, dword [ebp + 8]
mov ecx, dword [0x460598]
push 0x452b90
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edx, dword [0x460598]
mov esi, eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4151fe
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov dword [ebp + 8], edi
test edi, edi
jne 0x415156
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x460598]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
shr esi, 1
je 0x41517a
mov al, byte [edi]
cmp al, 0xff
je 0x415173
cmp al, 0xfe
jne 0x41517a
dec esi
add edi, 2
mov dword [ebp + 8], edi
lea edi, [esi + 1]
test edi, edi
jns 0x41518b
push 0x80070057
call fcn.00403700
mov eax, dword [ebx]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, edi
or ecx, edx
jge 0x4151a6
push edi
mov ecx, ebx
call fcn.004035c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebx]
push esi
push eax
push edi
push ecx
call fcn.0042fdb1
add esp, 0x10
mov eax, esi
cmp esi, 0xffffffff
jne 0x4151d1
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4151d5
push ecx
push eax
call fcn.0042f686
add esp, 8
test eax, eax
js 0x415181
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x415181
mov dword [ecx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x416b20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44aba8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x45d274]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0x7e9
jne 0x416c51
mov esi, dword [ebp + 8]
or ebx, 0xffffffff
cmp dword [ebp + 0x14], 1
jne 0x416bb8
cmp dword [esi + 0x1ec], ebx
jne 0x416bb8
mov ecx, dword [esi + 0x1e0]
lea eax, [esp + 0x14]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
fld dword [0x45ed08]
mov edx, dword [esp + 0x1c]
fmul qword [0x455f20]
mov eax, dword [esp + 0x18]
mov edi, dword [esi + 0x1f8]
push 0x44
push edx
push eax
call fcn.00447f10
push eax
push 0x14
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, esi
call fcn.00416df0
cmp dword [esi + 0x1dc], 3
jae 0x416c37
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
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.0041c830
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.0041b410
lea eax, [edi - 0x10]
mov dword [esp + 0x38], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x416c37
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 0x416c7a
mov eax, dword [ebp + 8]
call fcn.00416df0
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 0x416ca8
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 0x416ccd
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 0x416cde
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.00414cd0
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 0x416e90
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 0x416f2b
mov eax, dword [ebp + 0xc]
push eax
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.004160a0
mov ebx, dword [esp + 0x14]
test al, al
je 0x416f07
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 0x416ede
mov dword [ebx + 8], eax
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esi - 0xe8]
push ecx
call fcn.00414ee0
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 0x416f1d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
je 0x416f2b
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 0x416f61
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 0x418bc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b1d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45d274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x58], 0
je 0x418c44
cmp dword [0x460578], 0
je 0x418c19
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 [0x45d020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
cmp dword [edi + 0x5c], 0
je 0x418c79
push 0x40
push edi
mov ecx, 0x83
call fcn.00419180
jmp 0x418cfa
cmp dword [0x4605a0], 0
jne 0x418c94
push 0x44
push edi
mov ecx, 0x89
call fcn.00419180
cmp eax, 6
jne 0x418cfa
mov esi, dword [edi + 0x50]
mov dword [edi + 0x5c], 1
call fcn.0041f560
cmp dword [edi + 0x54], 0
jne 0x418cb0
push str.InstallCancelPage1
jmp 0x418cb5
push str.InstallCancel
call fcn.00408430
add esp, 4
cmp dword [edi + 0x54], 0
je 0x418cee
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.00415210
mov ebx, dword [ebp - 0x10]
push ebx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x418cfa
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 0x418d1d
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 0x419570
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x45d274]
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.00431420
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, 0x4523f8
ja 0x4195be
mov eax, str.Tahoma
push eax
lea ecx, [ebp - 0x44]
push 0x20
push ecx
call fcn.0043015b
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.00415010
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 [0x460688]
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.0042eecf
mov esp, ebp
pop ebp
ret 8
Function at 0x41a030
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.0041f050
pop edi
pop esi
pop ebx
ret

Function at 0x41a0c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ac98
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x45d274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x45d020]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d020
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 [0x4605a4]
lea eax, [eax + eax*8]
lea eax, [eax*4 + 0x45ed28]
mov ax, word [eax]
mov ecx, edi
lea ebx, [ebp - 0x10]
call fcn.0040d7d0
test eax, eax
jne 0x41a13e
mov eax, dword [0x45ed28]
mov ecx, edi
call fcn.0040d7d0
mov ebx, dword [0x460688]
mov edi, dword [ebp - 0x10]
mov ecx, esi
call fcn.0041a3c0
mov eax, dword [esi + 0xec]
cmp dword [eax + 0x60], 0
je 0x41a16d
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 0x41a190
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 0x41b410
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 0x41b444
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 8]
cmp eax, edi
je 0x41b444
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 0x41b455
xor eax, eax
jmp 0x41b470
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 0x41b460
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 0x41b485
xor eax, eax
jmp 0x41b4a0
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 0x41b490
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 0x41b4c8
mov ecx, esi
call fcn.0041b530
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push edi
push esi
push 0x41b510
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
cmp eax, edi
jne 0x41b4ec
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 0x41b650
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449d08
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x45d274]
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 0x41b767
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41b767
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 0x41b6e9
mov esi, dword [ebp - 0x14]
push esi
mov edi, 0x8007000e
call fcn.0042efaf
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 0x41b733
mov eax, dword [ebp + 8]
push eax
mov edx, esi
call fcn.00402d10
push esi
call fcn.0042efaf
add esp, 4
xor esi, esi
push esi
xor edi, edi
call fcn.0042efaf
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 0x41b747
and eax, 0xffff
or eax, 0x80070000
push esi
mov edi, eax
call fcn.0042efaf
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 0x41b77b
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 0x41c350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449048
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x45d274]
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 0x41c3f8
mov eax, dword [edi + 0x20]
cmp dword [eax], esi
jne 0x41c3a2
push 0xfc01
mov dword [eax], 0xfc00
call fcn.0042c525
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 0x41c3b5
mov eax, dword [ebp + 0xc]
jmp 0x41c3b7
sub eax, ebx
mov dword [ebp - 0x10], eax
cmp eax, esi
jbe 0x41c3db
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.0042f00b
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 0x41c489
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.00406150
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 0x41c47f
cmp dword [edi + 0x10], 0
je 0x41c45f
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.00405fe0
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.00405fe0
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 0x41cb40
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44aa78
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x45d274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x45d020]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d020
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 0x41cba7
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.0042f686
add esp, 8
test eax, eax
js 0x41ccf8
cmp eax, dword [esi - 8]
jg 0x41ccf8
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
je 0x41cd02
mov ecx, dword [esi - 0xc]
cmp ecx, 0xe6
jg 0x41cd02
lea eax, [ecx - 1]
test eax, eax
js 0x41ccf8
cmp eax, ecx
jg 0x41ccf8
cmp word [esi + eax*2], 0x5c
je 0x41cc19
push 0x5c
lea edi, [ebp - 0x10]
call fcn.0041cd40
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 0x41cc6f
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41cc40
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 0x41cc9f
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 0x41ccc2
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 0x41cce5
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 0x41cd25
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